:root {
  /* Dark mode colors (default) */
  --bg-gradient-1: #000000;
  --bg-gradient-2: #110f0f;
  --bg-gradient-3: #171313;
  --bg-gradient-4: #231e1e;
  --bg-gradient-5: #464141;
  --bg-gradient-6: #695656;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-tertiary: rgba(255, 255, 255, 0.6);
  --text-quaternary: rgba(255, 255, 255, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-bg-hover: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.1);
  --info-card-bg: rgba(0, 0, 0, 0.7);
  --modal-bg: #1a1a1a;
  --modal-border: rgba(255, 255, 255, 0.2);
  --modal-link-bg: rgba(255, 255, 255, 0.1);
  --modal-link-border: rgba(255, 255, 255, 0.2);
  --resume-button-bg: rgba(255, 255, 255, 0.15);
  --resume-button-border: rgba(255, 255, 255, 0.2);
}

/* Light mode */
/* Light mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg-gradient-1: #ffffff;
    --bg-gradient-2: #f8f8f8;
    --bg-gradient-3: #f2f2f2;
    --bg-gradient-4: #ebebeb;
    --bg-gradient-5: #e0e0e0;
    --bg-gradient-6: #d4d4d4;
    --text-primary: #000000;
    --text-secondary: rgba(0, 0, 0, 0.85);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --text-quaternary: rgba(0, 0, 0, 0.75);
    --border-color: rgba(0, 0, 0, 0.08);
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-bg-hover: rgba(0, 0, 0, 0.06);
    --card-border: rgba(0, 0, 0, 0.08);
    --info-card-bg: rgba(255, 255, 255, 0.98);
    --modal-bg: #ffffff;
    --modal-border: rgba(0, 0, 0, 0.12);
    --modal-link-bg: #f8f8f8;
    --modal-link-border: rgba(0, 0, 0, 0.08);
    --resume-button-bg: rgba(0, 0, 0, 0.06);
    --resume-button-border: rgba(0, 0, 0, 0.12);
  }
}

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

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(
    180deg,
    var(--bg-gradient-1),
    var(--bg-gradient-2),
    var(--bg-gradient-3),
    var(--bg-gradient-4),
    var(--bg-gradient-5),
    var(--bg-gradient-6)
  );
  background-size: 360% 360%;
  animation: gradient-animation 30s ease infinite;
  color: var(--text-primary);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.card-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
}

/* Large Hero Photo */
.hero-photo {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}

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

/* Info Card Overlay */
.info-card {
  background: var(--info-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px 30px;
  margin: -60px 20px 0 20px;
  border-radius: 16px;
  position: relative;
  z-index: 10;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.job-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.location {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* Main Action Buttons */
.main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 20px 30px 20px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.action-button:active {
  transform: scale(0.96);
}

.linkedin-button {
  background: #0077b5;
  color: #ffffff;
}

.resume-button {
  background: var(--resume-button-bg);
  color: var(--text-primary);
  border: 1px solid var(--resume-button-border);
}

.action-button i {
  font-size: 1rem;
}

/* Bio Section */
.bio-section {
  padding: 30px 30px 20px 30px;
  border-top: 1px solid var(--border-color);
}

.bio-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.bio-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-quaternary);
  font-weight: 400;
}

/* Contact Links */
.contact-links {
  padding: 20px 30px 40px 30px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.contact-link:active {
  transform: scale(0.98);
  background: var(--card-bg-hover);
}

.link-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.link-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon i {
  font-size: 1.3rem;
  color: #ffffff;
}

.link-icon-wrapper span {
  font-size: 1rem;
  font-weight: 500;
}

.arrow {
  font-size: 0.9rem;
  opacity: 0.5;
}

.email-icon {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

.phone-icon {
  background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
}

.github-icon {
  background: linear-gradient(135deg, #6e5494 0%, #4a3768 100%);
}

.portfolio-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: var(--modal-bg);
  border: 2px solid var(--modal-border);
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  line-height: 1;
  padding: 0;
  width: 35px;
  height: 35px;
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.8;
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-text {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.modal-link {
  background: var(--modal-link-bg);
  border: 1px solid var(--modal-link-border);
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
  word-break: break-all;
  color: var(--text-primary);
}

.modal-btn {
  background: var(--text-primary);
  color: var(--bg-gradient-1);
  border: none;
  padding: 16px 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.3px;
  position: relative;
}

.modal-btn:active {
  opacity: 0.9;
}

.copy-feedback {
  display: none;
  margin-top: 15px;
  color: #34c759;
  font-size: 0.85rem;
  font-weight: 500;
}

.copy-feedback.show {
  display: block;
}

/* Copy Button Checkmark Animation */
.modal-btn.copied {
  background: #34c759 !important;
  pointer-events: none;
  color: transparent !important;
}

/* Hide all text content when copied */
.modal-btn.copied * {
  display: none;
}

/* Checkmark that appears */
.modal-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  opacity: 0;
  display: none;
}

.modal-btn.copied::after {
  content: "✓";
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  width: auto;
  height: auto;
  display: block;
  animation: checkmarkPop 0.4s ease forwards;
}

@keyframes checkmarkPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 500px) {
  .hero-photo {
    height: 400px;
  }

  .info-card {
    margin: -50px 15px 0 15px;
    padding: 20px 25px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .main-actions {
    padding: 15px 15px 25px 15px;
  }

  .bio-section {
    padding: 20px 20px 15px 20px;
  }

  .contact-links {
    padding: 15px 20px 30px 20px;
  }
}

@media (max-width: 380px) {
  .hero-photo {
    height: 350px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
