/* Material Design 3 Variables */
:root {
  --md-sys-color-primary: #006C51;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #89F8D1;
  --md-sys-color-on-primary-container: #002116;
  --md-sys-color-secondary: #4C6358;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #CEE9DB;
  --md-sys-color-on-secondary-container: #092017;
  --md-sys-color-tertiary: #3E6374;
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: #C2E8FC;
  --md-sys-color-on-tertiary-container: #001F2A;
  --md-sys-color-surface: #F8FAF7;
  --md-sys-color-on-surface: #191C1B;
  --md-sys-color-surface-variant: #DBE5DE;
  --md-sys-color-on-surface-variant: #404944;
  
  /* Updated Dark theme colors for better readability */
  --md-sys-color-dark-surface: #1E1E2E;
  --md-sys-color-dark-on-surface: #E1E3E0;
  --md-sys-color-dark-surface-variant: #313244;
  --md-sys-color-dark-on-surface-variant: #BFC9C2;
  --md-sys-color-dark-primary: #7EE8C7;
  --md-sys-color-dark-on-primary: #00382A;
  --md-sys-color-dark-primary-container: #005140;
  --md-sys-color-dark-on-primary-container: #89F8D1;
  --md-sys-color-dark-secondary: #B3CCBF;
  --md-sys-color-dark-on-secondary: #243530;
  --md-sys-color-dark-secondary-container: #3B4B45;
  --md-sys-color-dark-on-secondary-container: #CEE9DB;
  
  /* Animation durations */
  --md-sys-motion-duration-short: 100ms;
  --md-sys-motion-duration-medium: 200ms;
  --md-sys-motion-duration-long: 500ms;
  
  /* Elevation values */
  --md-sys-elevation-level1: 0px 1px 2px rgba(0,0,0,0.3), 0px 1px 3px 1px rgba(0,0,0,0.15);
  --md-sys-elevation-level2: 0px 2px 6px rgba(0,0,0,0.15), 0px 1px 2px rgba(0,0,0,0.3);
  --md-sys-elevation-level3: 0px 4px 8px 3px rgba(0,0,0,0.15), 0px 1px 3px rgba(0,0,0,0.3);
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  transition: background-color var(--md-sys-motion-duration-long),
              color var(--md-sys-motion-duration-long);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body.dark {
  --md-sys-color-primary: var(--md-sys-color-dark-primary);
  --md-sys-color-on-primary: var(--md-sys-color-dark-on-primary);
  --md-sys-color-primary-container: var(--md-sys-color-dark-primary-container);
  --md-sys-color-on-primary-container: var(--md-sys-color-dark-on-primary-container);
  --md-sys-color-secondary: var(--md-sys-color-dark-secondary);
  --md-sys-color-on-secondary: var(--md-sys-color-dark-on-secondary);
  --md-sys-color-secondary-container: var(--md-sys-color-dark-secondary-container);
  --md-sys-color-on-secondary-container: var(--md-sys-color-dark-on-secondary-container);
  --md-sys-color-surface: var(--md-sys-color-dark-surface);
  --md-sys-color-on-surface: var(--md-sys-color-dark-on-surface);
  --md-sys-color-surface-variant: var(--md-sys-color-dark-surface-variant);
  --md-sys-color-on-surface-variant: var(--md-sys-color-dark-on-surface-variant);
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
}

/* Emulator Frame */
.emulator-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 90vh;
  background: var(--md-sys-color-surface-variant);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level3);
  border: 2px solid var(--md-sys-color-outline);
  z-index: 1;
}

.emulator-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 25px;
  background: var(--md-sys-color-surface);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 2;
}

.emulator-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-size: 14px;
  height: 30px;
  line-height: 30px;
}

.status-bar-center {
  flex: 0 0 auto;
  min-width: 45px;
  text-align: center;
  height: 30px;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-bar-left {
  flex: 1;
  display: flex;
  gap: 8px;
}

.status-bar-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.status-bar i {
  margin: 0 4px;
}

/* App Content */
.app-content {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #90caf9 var(--md-sys-color-surface-variant);
}

body.dark .app-content {
  scrollbar-color: #b475ff var(--md-sys-color-dark-surface-variant);
}

/* Material Design 3 Components */
.md3-surface {
  background-color: var(--md-sys-color-surface);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--md-sys-elevation-level1);
}

.md3-card {
  background-color: var(--md-sys-color-surface);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--md-sys-elevation-level1);
  transition: box-shadow var(--md-sys-motion-duration-medium);
}

.md3-card:hover {
  box-shadow: var(--md-sys-elevation-level2);
}

.md3-button {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  padding: 10px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--md-sys-motion-duration-short);
}

.md3-button:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.md3-icon-button {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--md-sys-color-primary);
  text-decoration: none;
  transition: background-color var(--md-sys-motion-duration-short);
}

.md3-icon-button:hover {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

/* Typography with gradient effect */
.gradient-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 46px;
  margin: 0;
  background: linear-gradient(135deg, #7F5AF0 0%, #9b4fff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: 
    0 0 8px rgba(127, 90, 240, 0.3),
    0 0 15px rgba(127, 90, 240, 0.2);
  letter-spacing: 1px;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #7F5AF0 0%, #9b4fff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: 
    0 0 6px rgba(127, 90, 240, 0.3),
    0 0 12px rgba(127, 90, 240, 0.2);
  text-align: center;
  margin-bottom: 24px;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #7F5AF0 0%, #9b4fff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: 
    0 0 4px rgba(127, 90, 240, 0.3),
    0 0 8px rgba(127, 90, 240, 0.2);
  margin: 8px 0;
  text-align: center;
}

body.dark .gradient-title,
body.dark .section-title,
body.dark .project-card h3 {
  background: linear-gradient(135deg, #7F5AF0 0%, #b475ff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: 
    0 0 8px rgba(127, 90, 240, 0.4),
    0 0 15px rgba(127, 90, 240, 0.3);
}

@keyframes titleGlow {
  from {
    text-shadow: 
      0 0 8px rgba(127, 90, 240, 0.3),
      0 0 15px rgba(127, 90, 240, 0.2);
  }
  to {
    text-shadow: 
      0 0 12px rgba(127, 90, 240, 0.4),
      0 0 20px rgba(127, 90, 240, 0.3),
      0 0 25px rgba(127, 90, 240, 0.2);
  }
}

.md3-title {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin: 0 0 16px 0;
  color: var(--md-sys-color-primary);
}

.md3-subtitle {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  margin: 0 0 8px 0;
  color: var(--md-sys-color-primary);
}

.md3-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  margin: 0 0 16px 0;
  color: var(--md-sys-color-on-surface);
}

.md3-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--md-sys-color-on-surface);
}

/* Navigation Bar */
.navigation-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--md-sys-color-surface);
  padding: 12px;
  border-top: 1px solid var(--md-sys-color-outline);
}

/* Home Button (Hidden by default) */
.home-button {
  display: none;
  justify-content: center;
  align-items: center;
  background: var(--md-sys-color-surface);
  padding: 12px;
  border-top: 1px solid var(--md-sys-color-outline);
}

.home-button button {
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border: none;
  padding: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--md-sys-motion-duration-short);
  box-shadow: var(--md-sys-elevation-level1);
  width: 56px;
  height: 56px;
}

.home-button button:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: translateY(-2px);
  box-shadow: var(--md-sys-elevation-level2);
}

.home-button button:active {
  transform: translateY(0) scale(0.98);
}

.nav-button {
  background: none;
  border: none;
  padding: 12px;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  border-radius: 50%;
  transition: all var(--md-sys-motion-duration-short);
}

.nav-button.active {
  color: #7F5AF0;
  background-color: rgba(127, 90, 240, 0.1);
}

.nav-button:hover {
  background-color: rgba(127, 90, 240, 0.05);
}

/* Profile Section */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.profile-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  position: relative;
  perspective: 1000px;
}

.profile-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 60px;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transition: transform var(--md-sys-motion-duration-long);
}

.profile-img.front {
  transform: rotateY(0deg);
}

.profile-img.back {
  transform: rotateY(180deg);
}

.profile-container:hover .profile-img.front {
  transform: rotateY(180deg);
}

.profile-container:hover .profile-img.back {
  transform: rotateY(360deg);
}

/* Neon Text Effects - Light Mode */
.light .dynamic-text[data-title="Android Developer"] {
  background: linear-gradient(135deg, #2ecc71 0%, #1abc9c 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: none;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.light .dynamic-text[data-title="Computer Engineer"] {
  background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: none;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Neon Text Effects - Dark Mode */
.dark .dynamic-text[data-title="Android Developer"] {
  color: #39FF14;
  text-shadow: 0 0 8px #39FF14,
               0 0 15px #39FF14,
               0 0 25px #39FF14,
               0 0 40px #39FF14;
  font-weight: 600;
  letter-spacing: 1px;
  -webkit-text-fill-color: initial;
  background: none;
}

.dark .dynamic-text[data-title="Computer Engineer"] {
  color: #00FFFF;
  text-shadow: 0 0 8px #00FFFF,
               0 0 15px #00FFFF,
               0 0 25px #00FFFF,
               0 0 40px #00FFFF;
  font-weight: 600;
  letter-spacing: 1px;
  -webkit-text-fill-color: initial;
  background: none;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}

.skill-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* App Icons */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 16px;
  padding: 8px;
  justify-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 8px;
  transition: transform var(--md-sys-motion-duration-medium);
  width: 72px;
}

.app-icon:hover {
  transform: scale(1.05);
}

.app-icon:active {
  transform: scale(0.95);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--md-sys-color-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--md-sys-elevation-level2);
  transition: background-color var(--md-sys-motion-duration-medium);
}

.icon-wrapper i.fa-github {
  color: #333;
  font-size: 32px;
}

.icon-wrapper i.fa-linkedin {
  color: #0077B5;
  font-size: 32px;
}

.icon-wrapper i.fa-google-play {
  color: #01875f;
  font-size: 32px;
}

.icon-wrapper i.fa-envelope {
  color: #EA4335;
  font-size: 32px;
}

.icon-wrapper img.medium-icon,
.icon-wrapper img.cv-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform var(--md-sys-motion-duration-medium);
}

.icon-wrapper img.medium-icon:hover,
.icon-wrapper img.cv-icon:hover {
  transform: scale(1.1);
}

.icon-wrapper i.fa-file-pdf {
  color: #FF0000;
}

.app-name {
  font-size: 12px;
  color: var(--md-sys-color-on-surface);
  text-align: center;
  font-weight: 500;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 24px;
  padding: 16px;
  position: relative;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--md-sys-motion-duration-medium);
}

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

.project-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--md-sys-elevation-level2);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(135deg, #7F5AF0 0%, #9b4fff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-shadow: 
    0 0 4px rgba(127, 90, 240, 0.3),
    0 0 8px rgba(127, 90, 240, 0.2);
  margin: 8px 0;
  text-align: center;
}

/* Blog Section */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
}

.blog-card {
  background: var(--md-sys-color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--md-sys-elevation-level1);
  cursor: pointer;
  transition: all var(--md-sys-motion-duration-medium);
  border: 1px solid var(--md-sys-color-surface-variant);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-sys-elevation-level3);
}

.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--md-sys-motion-duration-medium);
  background: var(--md-sys-color-surface-variant);
  border-radius: 12px 12px 0 0;
  display: block;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  margin: 16px;
  line-height: 1.4;
  background: linear-gradient(135deg, #7F5AF0 0%, #9b4fff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

body.dark .blog-title {
  background: linear-gradient(135deg, #7F5AF0 0%, #b475ff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}

/* Project Info Modal */
.project-info {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--md-sys-color-surface);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--md-sys-elevation-level3);
  width: 280px;
  max-width: 90%;
  z-index: 1000;
  margin: 0;
  pointer-events: auto;
}

/* Blog Post Content */
.blog-post-content {
  width: 100%;
  padding-top: 0;
  overflow-y: auto;
  max-height: 100%;
}

/* Tablet view blog post content */
.emulator-frame.tablet-view .blog-post-content {
  flex: 1;
  overflow-y: auto;
  height: 100%;
}

.blog-post-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--md-sys-color-surface-variant);
  width: 100%;
}



.blog-post-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  margin: 0;
  background: linear-gradient(135deg, #7F5AF0 0%, #9b4fff 100%);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -ms-background-clip: text;
  -o-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-align: center;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.blog-post-body {
  padding-right: 8px;
}

/* Tablet view blog post body */
.emulator-frame.tablet-view .blog-post-body {
  padding-right: 8px;
}

/* Tablet view blog post title */
.emulator-frame.tablet-view .blog-post-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* Tablet view blog post header */
.emulator-frame.tablet-view .blog-post-header {
  margin-bottom: 16px;
  padding-bottom: 12px;
  position: relative;
}

/* Tablet view app content adjustments */
.emulator-frame.tablet-view .app-content {
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.blog-post-image {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: var(--md-sys-elevation-level2);
  background: var(--md-sys-color-surface-variant);
}

.blog-post-text {
  color: var(--md-sys-color-on-surface);
  line-height: 1.7;
  font-size: 16px;
}

.blog-post-text h3 {
  color: var(--md-sys-color-primary);
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.blog-post-text p {
  margin-bottom: 20px;
  font-size: 16px;
}

.blog-post-text ul, .blog-post-text ol {
  margin: 20px 0;
  padding-left: 24px;
}

.blog-post-text li {
  margin-bottom: 12px;
  font-size: 16px;
}

.blog-post-text strong {
  color: var(--md-sys-color-primary);
  font-weight: 600;
}

/* Blog post links */
.blog-post-text a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--md-sys-motion-duration-short);
  border-bottom: 1px solid transparent;
}

.blog-post-text a:hover {
  color: var(--md-sys-color-primary-container);
  border-bottom: 1px solid var(--md-sys-color-primary-container);
}

/* Code block styles */
.blog-post-text pre {
  background: var(--md-sys-color-surface-variant);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
  border-left: 4px solid var(--md-sys-color-primary);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.4;
  color: var(--md-sys-color-on-surface);
}

.blog-post-text h4 {
  color: var(--md-sys-color-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
}

/* Emoji styles */
.blog-post-text h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Blog Post Scrollbar */
.blog-post-content::-webkit-scrollbar {
  width: 6px;
}

.blog-post-content::-webkit-scrollbar-track {
  background: var(--md-sys-color-surface-variant);
  border-radius: 3px;
}

.blog-post-content::-webkit-scrollbar-thumb {
  background: var(--md-sys-color-primary);
  border-radius: 3px;
}

body.dark .blog-post-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #7F5AF0 0%, #b475ff 100%);
}

.project-info h3 {
  margin-bottom: 16px;
  text-align: center;
}

.project-info p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--md-sys-color-surface-variant);
}

.project-links .md3-icon-button {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  transition: all var(--md-sys-motion-duration-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-links .md3-icon-button:hover {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  transform: scale(1.1);
}

.project-links .md3-icon-button i {
  font-size: 24px;
  }

.project-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.project-overlay.show {
  display: block;
}

.project-info.show {
  display: block;
  }
  
/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #4facfe 0%, #9b4fff 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1002;
}

body.dark .scroll-progress {
  background: linear-gradient(135deg, #4facfe 0%, #9b4fff 100%);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .project-card img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--md-sys-color-on-surface);
  margin-left: 8px;
}

.theme-toggle:hover {
  background: var(--md-sys-color-surface-variant);
}

/* Animations */
.typing-container {
  min-height: 32px;
  margin: 8px 0 16px;
}

.dynamic-text {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  color: var(--md-sys-color-primary);
}

.dynamic-text.flip-out {
  animation: flipOut var(--md-sys-motion-duration-medium) ease-out forwards;
}

.dynamic-text.flip-in {
  animation: flipIn var(--md-sys-motion-duration-medium) ease-in forwards;
}

@keyframes flipOut {
  0% { transform: rotateX(0deg); opacity: 1; }
  100% { transform: rotateX(-90deg); opacity: 0; }
}

@keyframes flipIn {
  0% { transform: rotateX(90deg); opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 600px) {
  .emulator-frame {
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
  }
  
  .project-card {
    flex-direction: column;
  }
  
  .project-card img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
  
  .theme-toggle {
    top: 10px;
    right: 10px;
  }
}

/* Tablet View for Blog Modal */
.emulator-frame.tablet-view {
  max-width: 1050px;
  width: 90vw;
  height: 90vh; /* Keep same height */
  transition: all var(--md-sys-motion-duration-long);
}

.emulator-frame.tablet-view .emulator-content {
  overflow: hidden;
}

.emulator-frame.tablet-view .app-content {
  overflow: hidden;
}

/* Hide other sections in tablet view */
.emulator-frame.tablet-view .profile-section,
.emulator-frame.tablet-view .social-links,
.emulator-frame.tablet-view .projects-section,
.emulator-frame.tablet-view .skills-section {
  display: none;
}

/* Show only blog section in tablet view */
.emulator-frame.tablet-view .blog-section {
  margin: 0;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Hide blog section title in tablet view */
.emulator-frame.tablet-view .blog-section .section-title {
  display: none;
}

/* Hide navigation bar in tablet view */
.emulator-frame.tablet-view .navigation-bar {
  display: none;
}

/* Show home button in tablet view */
.emulator-frame.tablet-view .home-button {
  display: flex;
}

/* Blog Post Tablet Styles */
@media (min-width: 768px) {
  .blog-post-title {
    font-size: 32px;
  }
  
  .blog-post-image {
    height: 300px;
  }
  
  .blog-post-text {
    font-size: 18px;
  }
  
  .blog-post-text h3 {
    font-size: 24px;
  }
}

/* Dark mode icon adjustments */
body.dark .icon-wrapper {
  background: var(--md-sys-color-surface-variant);
}

body.dark .icon-wrapper i.fa-github {
  color: #f0f6fc;
}

body.dark .icon-wrapper i.fa-linkedin {
  color: #0a66c2;
}

body.dark .icon-wrapper i.fa-google-play {
  color: #00c853;
}

body.dark .icon-wrapper i.fa-envelope {
  color: #ea4335;
}

body.dark .icon-wrapper i.fa-file-pdf {
  color: #ff5252;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 24px;
  color: var(--md-sys-color-primary);
  font-size: 28px;
  font-weight: 500;
}

body.dark .project-card h3 {
  color: var(--md-sys-color-dark-primary);
}

/* Running Bugdroid Animation */
.running-bugdroid {
  position: fixed;
  bottom: 20px;
  left: -50px;
  width: 58px;
  height: 58px;
  z-index: 2;
  animation: runClimbFlyAway 10s linear forwards;
  content: url("icons/android.png");
}

.running-bugdroid.jumping {
  content: url("icons/jetpack.png");
}

@keyframes runClimbFlyAway {
  0% {
    left: -80px;
    bottom: 20px;
    transform: translateY(0) scaleX(1);
  }
  /* Run to the emulator */
  25% {
    left: 20%;
    bottom: 20px;
    transform: translateY(0) scaleX(1);
  }
  /* Start climbing to clock level */
  50% {
    left: 25%;
    bottom: calc(100% - 77px);
    transform: translateY(0) rotate(15deg);
  }
  /* Fly away up and to the right */
  75% {
    left: 60%;
    bottom: calc(100% + 50px);
    transform: translateY(0) rotate(0deg);
  }
  /* Completely off screen */
  100% {
    left: 120%;
    bottom: calc(100% + 100px);
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
}

body.dark .running-bugdroid {
  filter: brightness(0.8);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--md-sys-color-surface-variant);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #90caf9;
  border-radius: 4px;
}

body.dark ::-webkit-scrollbar-track {
  background: var(--md-sys-color-dark-surface-variant);
}

body.dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #4facfe 0%, #9b4fff 100%);
}



/* Light mode adjustments */
body:not(.dark) .nav-button.active {
  color: #7F5AF0;
  background-color: rgba(127, 90, 240, 0.1);
}

body:not(.dark) .nav-button:hover {
  background-color: rgba(127, 90, 240, 0.05);
}

body:not(.dark) ::-webkit-scrollbar-thumb {
  background: #90caf9;
}

body:not(.dark) .scroll-progress {
  background: #90caf9;
}

