:root {
  /* Primary Colors */
  --primary-color: #2c3e50;
  --primary-hover: #1a252f;
  --accent-color: #007bff;
  
  /* Background Colors */
  --bg-primary: #fff;
  --bg-secondary: #f8f9fa;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  --bg-backdrop: rgba(0, 0, 0, 0.3);
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #666;
  --text-hover: #fff;
  
  /* Border Colors */
  --border-primary: #ddd;
  --border-secondary: #e9ecef;
  --border-accent: #2c3e50;
  
  /* Shadow Colors */
  --shadow: rgba(0, 0, 0, 0.15);
  
  /* Social Media Colors */
  --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --linkedin-color: #0077b5;
  --github-color: #333;
  --facebook-color: #1877f2;
  
  /* Status Colors */
  --published-bg: #2c3e50;
  --published-text: #fff;
  --coming-soon-bg: #666;
  
  /* Theme Toggle Colors */
  --theme-icon-color: #ffd700;
  --theme-icon-light-mode: #f39c12;
}

/* Dark mode variables - activated when checkbox is checked */
body:has(#theme-switch:checked) {
  /* Primary Colors */
  --primary-color: #58a6ff;
  --primary-hover: #ffffff;
  --accent-color: #58a6ff;
  
  /* Background Colors */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-overlay: rgba(13, 17, 23, 0.95);
  --bg-backdrop: rgba(255, 255, 255, 0.05);
  
  /* Text Colors */
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-hover: #0d1117;
  
  /* Border Colors */
  --border-primary: #30363d;
  --border-secondary: #21262d;
  --border-accent: #58a6ff;
  
  /* Shadow Colors */
  --shadow: rgba(0, 0, 0, 0.45);
  
  /* Social Media Colors - adjusted for dark mode */
  --github-color: #f0f6fc;
  --linkedin-color: #0a66c2;
  --facebook-color: #1877f2;
  
  /* Status Colors */
  --published-bg: #58a6ff;
  --published-text: #0d1117;
  --coming-soon-bg: #6e7681;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
  margin-block: 0.67em;
  font-size: 2em;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

a {
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}
header {
  background: var(--bg-primary);
  box-shadow: 0 2px 5px var(--shadow);
  position: -webkit-sticky; 
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  will-change: transform; 
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
nav {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  position: relative;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--accent-color);
}
.mobile-menu-toggle,
.mobile-close-toggle {
  display: none; 
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 1101;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; 
  -webkit-touch-callout: none;             
  user-select: none;
}
.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
}
.mobile-close-toggle span {
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  transition: 0.3s ease;
  border-radius: 2px;
}
/* Rotate bars to make an "X" */
.mobile-close-toggle span:first-child {
  transform: rotate(45deg);
}
.mobile-close-toggle span:last-child {
  transform: rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  box-shadow: 2px 0 15px var(--shadow);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 1000;
  padding-top: 80px;
}
.mobile-nav ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.mobile-nav li {
  border-bottom: 1px solid var(--border-secondary);
}
.mobile-nav li:last-child {
  border-bottom: none;
}
.mobile-nav a {
  text-decoration: none;
  display: block;
  padding: 1.2rem 2rem;
  text-align: left;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}
.mobile-nav a:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
  padding-left: 2.5rem;
}
.mobile-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-backdrop);
  z-index: 999;
}
.mobile-backdrop.active {
  display: block;
}

/* CSS-Only Theme Toggle Styles */
.theme-toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 101;
}

.theme-switch {
  display: none; 
}

.theme-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent; 
  border: none; 
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s ease; 
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.theme-label:hover {
  background: var(--accent-color); 
  border-radius: 50%;
  transform: scale(1.1);
}

.theme-icon-light,
.theme-icon-dark {
  position: absolute;
  font-size: 1.4rem; 
  font-weight: 600; 
  color: var(--theme-icon-color); 
  transition: all 0.4s ease; 
}

.theme-label:hover .theme-icon-light,
.theme-label:hover .theme-icon-dark {
  color: var(--text-hover);
  transform: rotate(360deg); 
}

/* Show sun icon by default (light mode) */
.theme-icon-light {
  opacity: 1;
  visibility: visible;
  color: var(--theme-icon-light-mode); 
}

.theme-icon-dark {
  opacity: 0;
  visibility: hidden;
}

/* When checkbox is checked (dark mode), show moon and hide sun */
.theme-switch:checked + .theme-label .theme-icon-light {
  opacity: 0;
  visibility: hidden;
}

.theme-switch:checked + .theme-label .theme-icon-dark {
  opacity: 1;
  visibility: visible;
  color: var(--theme-icon-color); 
}

.theme-switch:checked + .theme-label:hover .theme-icon-dark {
  color: #fff;
}

/* Remove hover effects on touch devices to prevent sticky hover states */
@media (hover: none) and (pointer: coarse) {
  .theme-label:hover {
    background: transparent; 
    transform: none;
  }
  
  .theme-label:hover .theme-icon-light,
  .theme-label:hover .theme-icon-dark {
    transform: none;
  }
  
  .theme-label:hover .theme-icon-light {
    color: var(--theme-icon-light-mode); 
  }
  
  .theme-label:hover .theme-icon-dark {
    color: var(--theme-icon-color); 
  }
  
  .theme-switch:checked + .theme-label:hover .theme-icon-dark {
    color: var(--theme-icon-color); 
  }
  
  /* Add a subtle active state for touch feedback */
  .theme-label:active {
    background: var(--accent-color); 
    border-radius: 50%;
    transform: scale(0.95);
    transition: all 0.2s ease; 
  }
  
  .theme-label:active .theme-icon-light,
  .theme-label:active .theme-icon-dark {
    color: var(--text-hover);
    transform: rotate(180deg); 
  }
  
  .theme-switch:checked + .theme-label:active .theme-icon-dark {
    color: #fff;
  }
}
.hero {
  padding: 8rem 0 !important;
  text-align: center;
}
.profile-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2rem;
}
.profile-image {
  width: 200px;
  height: 200px;
  border: 3px solid var(--border-accent);
  border-radius: 50%;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 200px;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero-social-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.rotating-platform {
  position: relative;
  width: 40px;
  height: 40px;
}

.platform-link {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 1px solid var(--border-secondary);
  opacity: 0;
  transform: translateX(-20px) scale(0.8);
}

.platform-link.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: pulseIn 0.6s ease-out;
}

.platform-link[data-platform="instagram"].active {
  background: var(--instagram-gradient);
  color: var(--text-hover);
  border-color: #bc1888;
}

.platform-link[data-platform="linkedin"].active {
  background: var(--linkedin-color);
  color: var(--text-hover);
  border-color: var(--linkedin-color);
}

.platform-link[data-platform="github"].active {
  background: var(--github-color);
  color: var(--text-hover);
  border-color: var(--github-color);
}

.platform-link[data-platform="facebook"].active {
  background: var(--facebook-color);
  color: var(--text-hover);
  border-color: var(--facebook-color);
}

@keyframes pulseIn {
  0% {
    transform: translateX(0) scale(1);
  }
  50% {
    transform: translateX(0) scale(1.1);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

.platform-link:hover {
  transform: translateX(0) scale(1) translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.platform-link.active:hover {
  transform: translateX(0) scale(1) translateY(-2px);
}

.platform-link i {
  font-size: 1rem;
}

.hero-social-handle .handle-text {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-secondary);
}

.hero-content p {
  font-size: 1.8rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.btn,
.see-more-btn {
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--border-accent);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover,
.see-more-btn:hover {
  background: var(--primary-color);
  color: var(--text-hover);
}
.section {
  padding: 3rem 0;
  position: relative;
}
.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 2px;
  background-color: var(--border-secondary);
}

.section-header {
  margin-bottom: 2rem;
}

.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.experience-item {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}

.experience-item:nth-child(odd) {
  flex-direction: row;
}

.experience-item:nth-child(even) {
  flex-direction: row-reverse;
}

.experience-date {
  flex: 0 0 150px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.experience-content {
  flex: 1;
  background: var(--bg-primary);
  padding: 2rem;
  border: 2px solid var(--border-primary);
  border-radius: 12px;
  margin: 0 2rem;
  position: relative;
  border-left: 4px solid var(--border-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.experience-content h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.experience-content h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.experience-content a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.experience-content a:hover {
  color: var(--accent-color);
}

.experience-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.experience-mode {
  margin-top: 1rem;
}

.mode-tag {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--primary-color);
  color: var(--text-hover);
}

.experience-content {
  max-width: 600px;
}
.experience-bar {
  height: 12px;
  background: var(--border-primary);
  margin: 0.5rem 0;
  border-radius: 6px;
}
.experience-bar:nth-child(1) {
  width: 100%;
}
.experience-bar:nth-child(2) {
  width: 75%;
}
.experience-bar:nth-child(3) {
  width: 60%;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}
.card {
  border: 2px solid var(--border-primary);
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}
.card-placeholder {
  height: 12px;
  background: var(--border-primary);
  margin: 0.5rem 0;
  border-radius: 6px;
}
.card-placeholder:nth-child(1) {
  width: 80%;
}
.card-placeholder:nth-child(2) {
  width: 100%;
}
.card-placeholder:nth-child(3) {
  width: 60%;
}

.research-item {
  position: relative;
}

.research-status {
  margin-left: 1rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.status-tag {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-tag.published {
  background: var(--published-bg);
  color: var(--published-text);
}

.research-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  padding-right: 4rem;
}

.research-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.research-title a:hover {
  color: var(--accent-color);
}

.research-conference h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.research-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.research-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 1.5rem 0;
}

.research-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.keyword-tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-secondary);
}

.project-item {
  position: relative;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  margin: 0;
}

.github-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--text-hover);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.github-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.github-btn i {
  font-size: 1.2rem;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.project-details li {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
}

.project-details li::before {
  content: '•';
  color: var(--text-primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.project-technologies::before {
  content: "Built with: ";
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.tech-icon:hover {
  background: var(--primary-color);
  color: var(--text-hover);
  transform: translateY(-1px);
}

.tech-icon i {
  font-size: 1rem;
}

.tech-icon::after {
  display: none;
}

.tech-tag {
  background: var(--primary-color);
  color: var(--text-hover);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-platform {
  position: relative;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.platform-info {
  flex: 1;
}

.platform-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem 0;
}

.platform-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.platform-name i {
  font-size: 1rem;
  color: var(--text-primary);
}

.platform-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--text-hover);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.platform-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.platform-btn.coming-soon {
  background: var(--coming-soon-bg);
  cursor: default;
}

.platform-btn.coming-soon:hover {
  transform: none;
  box-shadow: none;
  background: var(--coming-soon-bg);
}

.platform-btn i {
  font-size: 1rem;
}

.platform-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.platform-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.topic-tag {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-secondary);
}

.blog-note {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
  line-height: 1.6;
}

.blog-note a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-note a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.photography {
  padding: 3rem 0;
}

.photo-gallery-container {
  position: relative;
  display: block;
}

.photo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-overlay);
  color: var(--text-primary);
  border: 2px solid var(--border-accent);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  backdrop-filter: blur(5px);
}

.photo-nav-btn:hover {
  background: var(--primary-color);
  color: var(--text-hover);
  transform: translateY(-50%) translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.photo-nav-btn:active {
  transform: translateY(-50%);
}

.photo-nav-btn i {
  font-size: 1.2rem;
}

.photo-nav-prev {
  left: 10px; 
}

.photo-nav-next {
  right: 10px; 
}
.photography-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.photo-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.5rem;
  margin: 0rem 3rem; 
  scroll-snap-type: x mandatory;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
  user-select: none; 
  scroll-behavior: smooth; 
  transition: transform 0.3s ease;
}

.photo-grid.bounce-left {
  animation: bounceLeft 0.4s ease-out;
}

.photo-grid.bounce-right {
  animation: bounceRight 0.4s ease-out;
}

@keyframes bounceLeft {
  0% { transform: translateX(0); }
  50% { transform: translateX(40px); }
  100% { transform: translateX(0); }
}

@keyframes bounceRight {
  0% { transform: translateX(0); }
  50% { transform: translateX(-40px); }
  100% { transform: translateX(0); }
}

.photo-grid::-webkit-scrollbar {
  display: none; 
}

.photo-grid.dragging {
  scroll-snap-type: none; 
}

.photo-grid.dragging .photo-card {
  pointer-events: none; 
}

.photo-card {
  flex: 0 0 320px; 
  min-width: 320px; 
  background: var(--bg-primary);
  border: 2px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scroll-snap-align: start;
  margin: 1rem 0rem;
}

.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.gallery-image {
  width: calc(100% - 2rem); 
  height: 200px; 
  margin: 1rem; 
  border: 2px solid var(--border-primary);
  border-radius: 10px;
  object-fit: cover; 
}

.photo-caption {
  padding: 1.5rem;
}

.photo-caption h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.photo-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}
.read-more-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 4rem 0 0 0;
  margin-top: 4rem;
  border-top: 3px solid var(--border-accent);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.footer-main {
  text-align: center;
  max-width: 600px;
}

.footer-main h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-main p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.footer-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}

.connect-banner {
  background: var(--bg-secondary);
  border: 2px solid var(--border-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.connect-content h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.handle-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.handle-prefix {
  color: #3498db;
  font-size: 1.8rem;
  font-weight: 700;
}

.handle-text {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.connect-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  font-weight: 400;
}

.contact-info {
  text-align: left;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-info i {
  width: 18px;
  color: var(--text-primary);
  font-size: 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 100%;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border-secondary);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--text-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
}

.social-link i {
  font-size: 1.2rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-radius: 6px;
}

.footer-nav a:hover {
  color: var(--text-primary);
  padding-left: 0.5rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.contact-info i {
  width: 18px;
  color: var(--text-primary);
  font-size: 1rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background: var(--primary-color);
  color: var(--text-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

.footer-bottom {
  border-top: 2px solid var(--border-secondary);
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-primary);
  margin-top: 2rem;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
}

.footer-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto 2rem auto;
  border-radius: 2px;
}

.footer-credits p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-credits p:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-credits p:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  nav {
    height: 60px; /* Ensures consistent nav height */
    align-items: center; /* Vertically centers the hamburger */
  }
  nav ul {
    display: none;
  }
  header {
    position: fixed; /* Use fixed instead of sticky for mobile */
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    width: 100%;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
  }
  header.scrolled {
    box-shadow: 0 2px 5px var(--shadow);
  }
  
  /* Add padding to body to account for fixed header */
  body {
    padding-top: 60px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu-toggle.hide {
    display: none;
  }
  
  .mobile-close-toggle {
    display: none; 
  }
  .mobile-close-toggle.show {
    display: flex;
  }
  
  /* Theme toggle mobile positioning */
  .theme-toggle {
    right: 20px; 
  }
  
  .theme-label {
    width: 40px;
    height: 40px;
  }
  
  .theme-icon-light,
  .theme-icon-dark {
    font-size: 1.75rem; 
    font-weight: 600;
  }
  
  .mobile-nav.active {
    display: block;
  }
  .profile-container {
    flex-direction: column;
    gap: 2rem;
  }
  .hero {
  padding: 4rem 0 8rem 0 !important;
  text-align: center;
  }
  .hero-content {
    height: auto;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-social-handle {
    gap: 0.8rem;
  }
  
  .rotating-platform {
    width: 36px;
    height: 36px;
  }
  
  .platform-link {
    width: 36px;
    height: 36px;
  }
  
  .platform-link i {
    font-size: 0.9rem;
  }
  
  .hero-social-handle .handle-text {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .photography-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .photo-gallery-container {
    justify-content: center;
  }
  
  .photo-grid {
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .photo-card {
    flex: 0 0 min(calc(100vw - 5rem), 280px); 
    max-width: 280px;
  }
  
  .photo-caption {
    padding: 1.5rem;
  }
  
  .photo-caption h4 {
    font-size: 1rem;
  }
  
  .photo-caption p {
    font-size: 0.85rem;
  }
  
  .read-more-container {
    justify-content: center;
  }
  
  .experience-timeline::before {
    left: 10px;
    transform: none;
    top: 1rem;
  }
  
  .experience-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-left: 40px;
    margin-bottom: 2rem;
  }
  
  .experience-date {
    margin-bottom: 1rem;
    align-self: flex-start;
    flex: none;
    width: auto;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    position: relative;
  }
  
  .experience-date::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--primary-color);
  }
  
  .experience-content {
    margin: 0;
    width: 100%;
    padding: 1.5rem;
  }
  
  .research-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin: 0;
  }
  
  .research-title {
    padding-right: 5rem;
    margin-top: 0.5rem;
  }
  
  .footer-contact-row {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .contact-info {
    text-align: center;
  }
  
  .footer-main {
    text-align: center;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .connect-banner {
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
  }
  
  .handle-display {
    flex-direction: row;
    gap: 0.2rem;
    justify-content: center;
  }
  
  .handle-prefix {
    font-size: 1.8rem;
  }
  
  .handle-text {
    font-size: 1.4rem;
  }
  
  .connect-content h4 {
    font-size: 1rem;
    text-align: center;
  }
  
  .connect-note {
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
  }
}
@media (max-width: 480px) {
  /* Ensure header remains fixed on very small screens */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    width: 100%;
  }
  
  /* Add padding to body to account for fixed header */
  body {
    padding-top: 60px;
  }
  
  /* Hide navigation buttons on small mobile devices */
  .photo-nav-btn {
    display: none;
  }

  .container {
    padding: 0 15px;
  }
  
  .footer .container {
    padding: 0 20px;
  }
  
  .footer-main {
    padding: 0;
    text-align: center;
  }
  
  .connect-banner {
    margin: 1rem 0;
    padding: 1.2rem;
  }
  
  .handle-prefix {
    font-size: 1.6rem;
  }
  
  .handle-text {
    font-size: 1.2rem;
  }
  
  .connect-content h4 {
    font-size: 0.95rem;
  }
  
  .connect-note {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
  
  .photo-grid {
    padding: 0 0.5rem;
  }
  
  .photo-card {
    flex: 0 0 min(calc(100vw - 4rem), 250px); 
    max-width: 250px;
  }
  
  .photo-caption {
    padding: 1.5rem;
  }
  
  .photo-caption h4 {
    font-size: 0.9rem;
  }
  
  .photo-caption p {
    font-size: 0.8rem;
  }
  .photo-grid {
  margin: 0rem; 
}
}
    