/* Global Variables & Reset */
:root {
  /* Midnight Gold Palette */
  --bg-color: #0a0a0a;
  --surface-color: #171717;
  --surface-color-transparent: rgba(23, 23, 23, 0.8);
  --primary-color: #d4af37;
  /* Base Gold */
  --primary-gradient: linear-gradient(135deg, #d4af37 0%, #f6e27a 40%, #b49f39 100%);
  --text-color: #e5e5e5;
  --text-muted: #a3a3a3;
  --white: #ffffff;
  --black: #000000;
  --border-color: rgba(212, 175, 55, 0.2);
  /* Subtle Gold Border */

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Smooth Luxurious Ease */

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  cursor: none;
  /* Keep custom cursor */
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: 4px;
  display: block;
}

/* Custom Cursor - Golden Glow */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary-gradient);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  mix-blend-mode: exclusion;
}

/* Sparkle Effect */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #f6e27a;
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  animation: fadeAndFloat 0.8s ease-out forwards;
  box-shadow: 0 0 8px rgba(246, 226, 122, 0.8);
}

@keyframes fadeAndFloat {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  100% {
    transform: scale(0) translateY(-20px) rotate(45deg);
    opacity: 0;
  }
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  /* Slight rounded corners for elegance */
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Navigation - Glassmorphism */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

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

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  padding: 0 2rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tagline {
  color: var(--primary-color);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
  /* Centered glow */
  overflow: hidden;
  justify-self: center;
  align-self: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(110%);
}

/* Sections Global */
.section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.bg-light {
  background-color: transparent;
  /* Seamless dark theme */
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 4px;
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(145deg, var(--surface-color), #232323);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.skill-card ul li {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.skill-card ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.8rem;
}

/* Log Entries */
.log-entry {
  background: var(--surface-color-transparent);
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle white border */
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.log-entry:hover {
  border-color: var(--primary-color);
}

.log-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
}

.log-date {
  font-family: var(--font-serif);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  display: block;
}

.log-content h3 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.log-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Forms */
/* Forms */
.contact-wrapper {
  text-align: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  /* Darker overlay */
  backdrop-filter: blur(8px);
  /* Blur effect to background */
  transition: opacity 0.4s ease;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 4rem 3rem;
  border-radius: 4px;
  width: 100%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
}

.close-modal:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.modal-content h3 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  transition: var(--transition);
  border-radius: 0;
  /* Sharp for elegance */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: var(--primary-color);
  padding-left: 1rem;
  /* Slight indent on focus */
}

.modal-content .btn-primary {
  width: 100%;
  margin-top: 1rem;
  padding: 1.2rem;
  font-size: 1rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Achievements Page specific */
.content-card,
.meta-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.content-card h3 {
  color: var(--primary-color);
}

.content-card h4 {
  color: var(--white);
}

.tag {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    order: -1;
  }

  .cta-group {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
    color: var(--white);
  }

  h1 {
    font-size: 2.5rem;
  }
}

/* Achievement Tabs - Luxury Style */
.achievements-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0rem 0 4rem 0;
  justify-content: center;
}

.achievement-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.achievement-tab:hover {
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.achievement-tab.active {
  background: var(--primary-gradient);
  color: var(--black);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.achievements-container {
  min-height: 400px;
}

.achievement-section {
  display: none;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


.achievement-section.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.content-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.content-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7);
  border-color: var(--primary-color);
  background: linear-gradient(145deg, var(--surface-color), #232323);
}

.content-card:hover::after {
  opacity: 1;
}

/* Staggered Animation for children would require JS or nth-child, keeping simple fadeIn for now but smoother */
/* Make the section title full width */
.achievement-section>.section-title {
  grid-column: 1 / -1;
  margin-bottom: 3rem;
}

/* Profile Summary Section */
.profile-summary {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.summary-col h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.summary-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.link-list li {
  margin-bottom: 1rem;
}

.link-list a {
  font-family: var(--font-sans);
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  display: inline-block;
  position: relative;
}

.link-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--primary-color);
  transition: var(--transition);
}

.link-list a:hover::after {
  width: 100%;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  border-radius: 2px;
  transition: var(--transition);
}

.tag:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Read More Functionality */
.more-content {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.more-content.show {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease;
}

#dots {
  display: inline;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary-color);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--white);
  border-bottom-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Clickable Card Indicator */
a>.content-card::after {
  content: '↗';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.6;
  transition: var(--transition);
}

a>.content-card:hover::after {
  opacity: 1;
  transform: translate(3px, -3px);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Specific overwrite for Resume Link (Arrow Inline with Text) */
a.resume-link>.content-card::after {
  content: none !important;
}

a.resume-link .content-card h3::after {
  content: ' ↗';
  font-size: 1.2rem;
  opacity: 0.8;
  transition: var(--transition);
}

a.resume-link:hover h3::after {
  transform: translate(3px, -3px);
  opacity: 1;
}

.about-text {
  padding: 3rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
  background: var(--surface-color);
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Decorative Gold accent */
.about-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-gradient);
}


.hero-small {
  min-height: 40vh;
  padding: 3rem 1rem;
  text-align: center;
}

/* Utility Classes for Cleanup */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.pt-20 {
  padding-top: 5rem;
}

.max-w-800 {
  max-width: 800px;
  margin: 0 auto;
}

.list-disc {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.full-width {
  width: 100%;
}

.slideshow-small {
  width: 150px;
  height: 150px;
  margin: 2rem auto 0 auto;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

/* Enhancing Resume Link Specificity without Overkill */
a.resume-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Ensure the arrow is definitely inline */
a.resume-link .content-card h3 {
  display: inline-block;
}

.about-text p {
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.about-text>p:first-of-type {
  color: var(--white);
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

/* Center the button */
.about-text .btn-text {
  display: block;
  margin: 2rem auto 0;
  width: fit-content;
  font-size: 0.85rem;
  letter-spacing: 2px;
}



/* Slideshow Styles */
.slideshow-container {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  aspect-ratio: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Resume Link Specifics */
.resume-link>.content-card::after {
  right: auto;
  /* Reset right */
  left: 1.5rem;
  /* Move to left */
}

/* Adjust hover animation for left-side arrow */
.resume-link>.content-card:hover::after {
  transform: translate(-3px, -3px);
}