:root {
  --bg: #1a1a1a;
  --card-bg: #242424;
  --orange: #ff6b35;
  --grey: #888;
  --white: #f5f5f5;
  --border: #333;
}

body.light-mode {
  --bg: #f5f5f5;
  --card-bg: #ffffff;
  --grey: #666;
  --white: #1a1a1a;
  --border: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 100px;
}

html {
  scroll-behavior: auto;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Clock */
.clock-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0s;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--grey);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 1000;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0s;
}

.theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

body.light-mode .theme-toggle .sun-icon {
  display: block;
}

body.light-mode .theme-toggle .moon-icon {
  display: none;
}

/* Like Counter */
.like-button {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--grey);
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0s;
}

@media (max-width: 480px) {
  .like-button {
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    gap: 6px;
    font-size: 12px;
  }
  
  .like-button .heart-icon {
    width: 18px;
    height: 18px;
  }
  
  .theme-toggle {
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
  }
  
  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }
}

.like-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.like-button.liked {
  border-color: var(--orange);
  color: var(--orange);
}

.like-button.liked .heart-icon {
  fill: var(--orange);
  animation: heartBeat 0.3s ease;
}

.like-button .heart-icon {
  transition: fill 0.3s ease;
}

@keyframes heartBeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Profile Section */
.profile-section {
  text-align: center;
  padding: 10px 0 20px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: visible;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
  cursor: pointer;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-bg);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid var(--border);
}

.profile-avatar:hover .avatar-tooltip {
  opacity: 1;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-bg);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid var(--border);
}

.profile-avatar:hover .avatar-tooltip {
  opacity: 1;
}

.name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey);
  margin-bottom: 12px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: var(--orange);
  border-radius: 50%;
  display: inline-block;
  animation: glowPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--orange);
}

@keyframes glowPulse {
  0%, 100% { 
    opacity: 1;
    box-shadow: 0 0 8px var(--orange), 0 0 12px var(--orange);
  }
  50% { 
    opacity: 0.6;
    box-shadow: 0 0 4px var(--orange), 0 0 6px var(--orange);
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1s;
}

.social-icons a {
  opacity: 0.6;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

body.light-mode .social-icons img {
  filter: brightness(0) invert(0.4);
}

.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1.2s;
}

.btn {
  padding: 0 30px;
  height: 39px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--white);
  color: var(--bg);
}

.btn-primary:hover {
  background-color: #e0e0e0;
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.separator {
  font-size: 14px;
  color: var(--grey);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.location-text {
  margin-top: 0;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Heading */
.section-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  text-align: center;
  margin-bottom: 24px;
}

/* About Section */
.about-section {
  padding: 40px 0;
  text-align: center;
}

.about-section h2 {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 2.2s;
}

.about-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 2.5s;
}

/* Work Section */
.work-section {
  padding: 40px 0;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 16px;
}

.work-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.work-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--grey);
  border-bottom: 1px solid var(--border);
}

.work-header svg {
  color: var(--orange);
  flex-shrink: 0;
}

.work-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.work-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-all {
  text-align: center;
  margin-top: 20px;
}

.btn-view-all {
  width: 100%;
  max-width: 600px;
  height: 50px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-view-all:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.arrow-icon {
  width: 16px;
  height: 16px;
}

/* Highlights Section */
.highlights-section {
  padding: 40px 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.highlight-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.highlight-icon {
  width: 24px;
  height: 24px;
}

.highlight-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.highlight-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--white);
}

/* Skills Section */
.skills-section {
  padding: 40px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skills-description {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
}

.skills-description p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 200;
  font-style: italic;
}

.skills-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skill-icon {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition: all 0.3s;
}

.skill-icon:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.skill-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Contact Section */
.contact-section {
  padding: 40px 0;
}

/* Contact Page Hero */
.contact-hero {
  text-align: center;
  padding: 10px 0 10px;
}

.contact-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.contact-subtitle {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.alt-contact {
  font-size: 12.5px;
  color: var(--grey);
  text-align: center;
  margin-top: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

.alt-contact a {
  color: var(--orange);
  text-decoration: none;
}

.alt-contact .emoji { font-size: 14px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--grey);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  padding: 12px 24px;
  background-color: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.btn-submit:hover {
  background-color: #ff5722;
  transform: translateY(-1px);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 100;
}

.footer-text a {
  color: var(--orange);
  text-decoration: none;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-icons a {
  opacity: 0.5;
  transition: all 0.3s ease;
}

.footer-icons a:hover {
  opacity: 1;
}

.footer-icons a:hover img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(2162%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

.footer-icons a.active {
  opacity: 1;
}

.footer-icons a.active img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(2162%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

.footer-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

body.light-mode .footer-icons img {
  filter: brightness(0) invert(0.4);
}

body.light-mode .footer-icons a:hover img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(2162%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

body.light-mode .footer-icons a.active img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(98%) saturate(2162%) hue-rotate(346deg) brightness(101%) contrast(101%);
}

/* Credit text under contact */
.site-credit {
  text-align: center;
  font-size: 11.5px;
  color: var(--grey);
  margin: 30px 0 80px;
}

.site-credit a {
  color: var(--orange);
  text-decoration: none;
}

/* Reveal on scroll */
.about-section,
.work-section,
.highlights-section,
.skills-section,
.contact-section,
.site-credit {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.about-section.visible,
.work-section.visible,
.highlights-section.visible,
.skills-section.visible,
.contact-section.visible,
.site-credit.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .name { font-size: 28px; }

  .tagline {
    font-size: 12px;
  }

  .work-image {
    height: 180px;
  }

  .highlights-grid {
    gap: 10px;
  }

  .highlight-card {
    padding: 14px;
    min-height: 90px;
  }

  .highlight-card p {
    font-size: 12px;
  }

  .skills-grid {
    gap: 10px;
  }

  .skill-icon img {
    width: 40px;
    height: 40px;
  }
}
