:root {
  --bg: #071a14;
  --bg-2: #0b3d2e;
  --text: #ffffff;
  --muted: #b7d6c9;
  --muted2: #00ffae;
  --muted3: #000000;
  --brand: #2ecc71;
  --brand-gradient: linear-gradient(90deg,
      #1abc9c,
      #2ecc71,
      #a8e063);
  --card: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --ring: rgba(46, 204, 113, 0.25);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

:root.light {
  --bg: #f2fbf6;
  --bg-2: #ffffff;
  --text: #0b3d2e;
  --muted: #000000;
  --muted2: #ffffff;
  --muted3: #ffffff;
  --brand: #27ae60;
  --brand-gradient: linear-gradient(90deg, #0b3d2e, #27ae60, #a8e063);
  --card: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(7, 26, 20, 0.12);
  --ring: rgba(39, 174, 96, 0.2);
  --shadow: 0 8px 30px rgba(7, 26, 20, 0.12);
}



* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(ellipse at center, #0b1730 0%, var(--bg) 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}


/* Header / Nav */

header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0));
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.nav {

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;

}

.nav img {
  width: 5vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .3px;
}

.brand i {
  font-size: 28px;
  color: var(--brand);
}

.nav a {
  opacity: .9;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 8px 0;


}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--text);
  box-shadow: var(--shadow);
  color: var(--bg);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;

}

.btn:hover {
  box-shadow: 0 0 0 4px var(--ring), var(--shadow);
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--brand-gradient);
  color: var(--muted3);
  border: none;
}

.btn.secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}


.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;

}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 10px;

}


/* Liquid Glass System */

.liquid-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  filter: blur(35px) saturate(140%);
  opacity: .55;
  mix-blend-mode: screen;
}

.blob::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      rgba(46, 204, 113, 0.85),
      rgba(26, 188, 156, 0.7) 40%,
      rgba(168, 224, 99, 0.55) 70%, transparent 72%);
}

.blob.b1 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -80px;
  animation: float 16s ease-in-out infinite;
}

.blob.b2 {
  width: 520px;
  height: 520px;
  right: -160px;
  top: 20vh;
  animation: float 22s ease-in-out -4s infinite;
}

.blob.b3 {
  width: 360px;
  height: 360px;
  left: 30vw;
  bottom: -120px;
  animation: float 18s ease-in-out -2s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }

  50% {
    transform: translateY(-30px) translateX(20px) scale(1.08);
  }
}

/* Liquid glass card */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  transition: var(--transition);

}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card::after {
  /* liquid sheen */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(1200px 400px at -10% -40%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
  mix-blend-mode: soft-light;
  opacity: .9;
}

/* Sections */
section {
  padding: 40px 0;
}

h1 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 10px;
}

h2 {
  font-size: clamp(22px, 2.8vw, 34px);
  margin: 0 0 14px;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

p {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.65;
}

/* Gradient text */
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* Hero */
.hero {
  padding: 80px 0;
  margin-top: 30px;
}

.hero-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: nowrap;
  /* stay in one line */
}

.hero .title {
  padding: 30px;
  display: flex;
}

.hero .title h1 {
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--brand);
  font-weight: 600;
  min-height: 2rem;
}

.hero .quick {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-3px);
}

/* Avatar */
.avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-card {
  text-align: center;
  max-width: 300px;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--brand-gradient);
  padding: 3px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-info h3 {
  margin-bottom: 5px;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat i {
  font-size: 22px;
  color: var(--brand);
  margin-top: 3px;
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.skill-category h3 {
  margin-bottom: 15px;
  color: var(--brand);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .07);
  font-size: 14px;
  transition: var(--transition);
}

.chip:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

/* Projects */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  transition: transform .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 5px var(--ring), var(--shadow);
}

.project-card h3 {
  margin: 15px 0 8px;
}

.project-icon {
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 10px;
}

.project-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .06);
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: auto;
  padding-top: 20px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: var(--brand);
}

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

/* Timeline */
.timeline {
  position: relative;
  margin-left: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--brand), transparent);
}

.t-item {
  position: relative;
  padding-left: 60px;
  margin: 30px 0;
}

.t-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--brand);
  color: var(--brand);
  font-size: 1.2rem;
}

.t-content {
  background: rgba(255, 255, 255, .03);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.t-content h3 {
  margin-top: 0;
  color: var(--brand);
}

.t-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 15px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--brand);
  width: 30px;
}

.contact-method a {
  color: var(--brand);
}

.contact-method a:hover {
  text-decoration: underline;
}

/* Footer - IMPROVED FOR MOBILE */
footer {
  padding: 50px 0 30px;
  text-align: center;
  color: var(--muted2);
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-brand p {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted2);
}

.footer-brand img {
  width: 5vh;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-column h4 {
  margin-bottom: 15px;
  color: var(--muted2);
  font-size: 1.1rem;
}

.footer-column a {
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
  font-size: 0.95rem;
  padding: 4px 0;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--brand);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--muted2);
}

.footer-bottom p {
  color: var(--muted2);
}


/* Desktop Media Query */
@media (min-width: 1200px) {
  .container {
    width: min(1300px, 92vw);
  }

  .hero .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 40px;
  }

  .hero .title>div:first-child {
    flex: 1;
  }

  .hero-visual {
    flex-shrink: 0;
  }

  .avatar-card {
    max-width: 320px;
  }

  .avatar {
    width: 200px;
    height: 200px;
  }

  h1 {
    font-size: clamp(40px, 5vw, 72px);
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .projects {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
  }

  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }

  .about-grid {
    gap: 25px;
  }

  .stat {
    padding: 22px;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-column: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    border-radius: 0 0 30px 30px;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;

  }

  .nav {
    position: relative;
  }

  .hero .quick {
    justify-content: center;
  }

  .hero {
    padding: 60px 0;
  }

  /* IMPROVED MOBILE FOOTER */
  footer {
    padding: 40px 0 20px;
    background: rgba(0, 0, 0, 0.4);
  }

  .footer-content {
    gap: 25px;
    margin-bottom: 30px;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    font-size: 0.95rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-links {
    gap: 25px;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
  }

  .footer-column a {
    font-size: 0.9rem;
    padding: 3px 0;
  }

  .footer-bottom {
    padding-top: 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 650px) {
  .hero .quick {
    flex-direction: column;
    align-items: center;
  }

  .hero .quick .btn {
    width: 100%;
    justify-content: center;
  }

  .hero .title {
    padding: 20px;
    display: block;
  }

  .hero-visual {
    padding: 10px;
  }

  .card {
    padding: 18px;
  }

  /* FURTHER MOBILE FOOTER IMPROVEMENTS */
  footer {
    padding: 30px 0 15px;
  }

  .footer-content {
    gap: 20px;
    margin-bottom: 25px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .footer-column a {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .footer-brand .brand {
    justify-content: center;
  }

  .footer-bottom {
    padding-top: 15px;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}