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

:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: #050505;
  --bg-card-hover: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --accent-1: #ffffff;
  --accent-2: #ffffff;
  --accent-3: #aaaaaa;
  --accent-glow: rgba(255, 255, 255, 0.08);
  --gradient-1: linear-gradient(135deg, #ffffff, #cccccc);
  --gradient-2: linear-gradient(135deg, #ffffff, #999999);
  --gradient-3: linear-gradient(135deg, #eeeeee, #ffffff);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-1) transparent;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  cursor: none;
}

@media (max-width: 768px) {
  body { cursor: auto; }
}

/* Rain Canvas */
#rainCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Noise texture overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

/* ========== Section Headers ========== */
.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 0 auto;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 24px auto 60px;
  max-width: 500px;
}

/* ========== Custom Cursor ========== */
.cursor {
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  opacity: 0.25;
}

.cursor-trail {
  position: fixed;
  border-radius: 50%;
  background: var(--accent-1);
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 14, 0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient-1);
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 25s ease-in-out infinite;
}

.shape-1 {
  width: 700px;
  height: 700px;
  background: var(--accent-1);
  top: -250px;
  right: -200px;
  opacity: 0.12;
}

.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-3);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
  opacity: 0.08;
}

.shape-3 {
  width: 350px;
  height: 350px;
  background: #ffffff;
  top: 40%;
  left: 60%;
  animation-delay: -14s;
  opacity: 0.04;
}

.shape-4 {
  width: 200px;
  height: 200px;
  background: var(--accent-2);
  top: 20%;
  left: 10%;
  animation-delay: -3s;
  opacity: 0.1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 30px) scale(1.02); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-greeting {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.gradient-text { -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-1 { background-image: var(--gradient-1); }
.gradient-2 { background-image: var(--gradient-2); }
.gradient-3 { background-image: var(--gradient-3); }

.hero-subtitle-wrapper {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  min-height: 2em;
  font-weight: 400;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent-1);
  font-weight: 300;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-bounce);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.25);
  background: #f0f0f0;
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.01);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.08);
}

.hero-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-link {
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  position: relative;
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========== About ========== */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.image-frame {
  width: 340px;
  height: 340px;
  position: relative;
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

.image-content {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-1);
  position: relative;
  z-index: 1;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}

.image-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.2;
}

.image-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.decoration-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: dot-float 4s ease-in-out infinite;
}

.dot-1 {
  top: 10%;
  right: -10px;
  animation-delay: 0s;
}

.dot-2 {
  bottom: 20%;
  left: -10px;
  animation-delay: -2s;
  background: var(--accent-3);
}

@keyframes dot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.decoration-line {
  position: absolute;
  top: 50%;
  right: -40px;
  width: 30px;
  height: 2px;
  background: var(--gradient-3);
  border-radius: 1px;
}

.about-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--gradient-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ========== Projects ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-1), transparent 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.06);
  background: var(--bg-card-hover);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-placeholder {
  transform: scale(1.08);
}

.project-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -2px;
}

.project-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-8px);
  transition: all var(--transition);
}

.project-card:hover .project-actions {
  opacity: 1;
  transform: translateY(0);
}

.project-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: white;
  transition: all var(--transition);
  text-decoration: none;
}

.project-action-btn:hover {
  background: var(--accent-1);
  transform: scale(1.1);
}

.project-body {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tags span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: gap var(--transition);
}

.project-link span {
  transition: transform var(--transition);
  display: inline-block;
}

.project-link:hover {
  color: var(--text-primary);
}

.project-link:hover span {
  transform: translateX(2px);
}

/* ========== Skills ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-group {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.skill-group:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.skill-icon {
  font-size: 1.4rem;
}

.skill-group-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-info span:first-child {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-percent {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.skill-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 3px;
  background: #ffffff;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Contact ========== */
.contact-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
}

.contact-info-side {
  background: var(--gradient-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--border-color);
}

.contact-info-side h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

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

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.detail-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition);
}

.contact-social-link:hover {
  color: var(--text-primary);
  border-color: var(--accent-1);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.contact-form {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
  position: relative;
  z-index: 1;
}

.input-group textarea {
  resize: vertical;
  min-height: 100px;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all var(--transition);
  padding: 0 4px;
  z-index: 2;
  background: var(--bg-card);
}

.input-group textarea ~ label {
  top: 14px;
  transform: none;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:valid ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: all var(--transition);
  border-radius: 1px;
  z-index: 3;
}

.input-group input:focus ~ .input-border,
.input-group textarea:focus ~ .input-border {
  width: calc(100% - 4px);
  left: 2px;
}

.btn-submit {
  width: fit-content;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10000;
}

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

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

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

/* ========== Reveal Animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== Mobile ========== */
@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-info-side {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75vw;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 90px 32px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
  }

  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .image-frame {
    width: 220px;
    height: 220px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 0.95rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .input-group input,
  .input-group textarea {
    padding: 16px;
    font-size: 16px;
  }

  .input-group label {
    font-size: 0.95rem;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cursor, .cursor-follower, .cursor-trail {
    display: none !important;
  }

  .noise {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 36px;
  }

  .decoration-line,
  .decoration-dot {
    display: none;
  }

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

  .hero-description {
    font-size: 0.95rem;
  }

  .contact-card {
    border-radius: 12px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-info-side {
    padding: 28px 20px;
  }

  .project-body {
    padding: 18px;
  }

  .project-name {
    font-size: 1.05rem;
  }

  .project-desc {
    font-size: 0.85rem;
  }

  .skill-group {
    padding: 22px;
  }

  .skill-group-header h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .image-frame {
    width: 180px;
    height: 180px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .hero-greeting {
    font-size: 1rem;
  }

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

  .hero-description {
    font-size: 0.88rem;
  }

  .contact-form,
  .contact-info-side {
    padding: 20px 16px;
  }

  .section {
    padding: 40px 0;
  }

  .about-heading {
    font-size: 1.4rem;
  }

  .about-text {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 16px;
  }
}
