/* ===== RESET & GLOBAL ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #7CFFB2;
  --accent-dim: rgba(124, 255, 178, 0.15);
  --accent-glow: rgba(124, 255, 178, 0.4);
  --bg-dark: #060d09;
  --bg-card: rgba(12, 24, 16, 0.85);
  --bg-card-solid: #0c1810;
  --text-primary: #e5ffe9;
  --text-secondary: #8fbf9e;
  --border: rgba(124, 255, 178, 0.12);
  --nav-height: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== BUBBLE CANVAS ===== */
#bubbles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== GEOMETRIC LINES ===== */
.geo-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.geo-lines .line {
  position: absolute;
  background: var(--accent);
  opacity: 0.08;
}

.geo-lines .line-h1 {
  width: 400px;
  height: 1px;
  top: 20%;
  right: -50px;
  transform: rotate(-30deg);
}

.geo-lines .line-h2 {
  width: 300px;
  height: 1px;
  top: 35%;
  right: 30px;
  transform: rotate(-30deg);
}

.geo-lines .line-v1 {
  width: 1px;
  height: 350px;
  top: 15%;
  right: 120px;
  transform: rotate(-30deg);
}

.geo-lines .line-v2 {
  width: 1px;
  height: 250px;
  top: 25%;
  right: 50px;
  transform: rotate(-30deg);
}

.geo-lines .circle-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.06;
}

.geo-lines .circle-deco.c1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -80px;
}

.geo-lines .circle-deco.c2 {
  width: 180px;
  height: 180px;
  top: 30%;
  right: 20px;
}

.geo-lines .dot-grid {
  position: absolute;
  top: 18%;
  right: 40px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.1;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(6, 13, 9, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(6, 13, 9, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  z-index: 2;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 100%;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 550px;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-name .highlight {
  color: var(--accent);
  position: relative;
}

.hero-name .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-dim);
  border-radius: 4px;
  z-index: -1;
}

.hero-title {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.8s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 1s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow), 0 10px 30px rgba(0,0,0,0.3);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* Hero Photo */
.hero-photo {
  position: relative;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeScale 1s ease forwards;
  animation-delay: 0.6s;
}

.hero-photo .photo-frame {
  width: 340px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-dim);
}

.hero-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo .photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 13, 9, 0.6) 100%);
  z-index: 1;
}

.photo-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.photo-badge .status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.floating-shape {
  position: absolute;
  border: 1.5px solid var(--accent);
  opacity: 0.15;
  border-radius: 4px;
}

.floating-shape.s1 {
  width: 60px;
  height: 60px;
  top: -20px;
  right: -20px;
  transform: rotate(15deg);
  animation: float 6s ease-in-out infinite;
}

.floating-shape.s2 {
  width: 40px;
  height: 40px;
  bottom: 30px;
  left: -15px;
  border-radius: 50%;
  animation: float 5s ease-in-out infinite reverse;
}

.floating-shape.s3 {
  width: 25px;
  height: 25px;
  top: 40%;
  right: -30px;
  transform: rotate(45deg);
  animation: float 7s ease-in-out infinite;
}

/* ===== SECTION COMMON ===== */
section {
  position: relative;
  z-index: 2;
  padding: 100px 40px;
}

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

.section-header .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 12px auto 0;
  font-size: 0.95rem;
}

.divider {
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin: 16px auto 0;
}

/* ===== ABOUT ===== */
.about {
  background: linear-gradient(180deg, transparent, rgba(12, 24, 16, 0.4), transparent);
}

.about-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 30px rgba(124, 255, 178, 0.1);
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.stat-item .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-dim);
}

.skill-card .skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.skill-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.skill-tags span {
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== PROJECTS ===== */
.projects {
  background: linear-gradient(180deg, transparent, rgba(12, 24, 16, 0.4), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  text-align: left;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 255, 178, 0.25);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-dim);
}

.project-card .project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 10px;
  color: #fff;
}

.project-link i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(3px);
}

/* ===== CONTACT ===== */
.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-detail .cd-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail .cd-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-detail .cd-text a,
.contact-detail .cd-text p {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact-socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-dim);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(6, 13, 9, 0.6);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(143, 191, 158, 0.4);
}

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 20px var(--accent-dim);
}

.form-submit:hover {
  box-shadow: 0 0 35px var(--accent-glow), 0 8px 25px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.form-submit:active {
  transform: scale(0.97);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card-solid);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px var(--accent-dim);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast .toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.toast .toast-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

.footer a:hover {
  color: #fff;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-20px) rotate(15deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-name {
    font-size: 2.5rem;
  }

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

  .hero-photo .photo-frame {
    width: 260px;
    height: 310px;
  }

  .about-grid {
    flex-direction: column;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 90px 30px 40px;
    gap: 4px;
    border-left: 1px solid var(--border);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero-name {
    font-size: 2rem;
  }

  section {
    padding: 70px 20px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero-photo .photo-frame {
    width: 220px;
    height: 270px;
  }

  .photo-badge {
    font-size: 0.75rem;
    padding: 8px 16px;
  }

  .geo-lines {
    display: none;
  }
}