/* Default colors - always blue theme */
:root {
  --bg: #0a0f1a;
  --fg: #e6f0ff;
  --muted: #a8b8d0;
  --accent: #3b82f6; /* blue */
  --accent-2: #1d4ed8; /* deeper blue */
  --card: rgba(59, 130, 246, 0.08);
  --border: rgba(59, 130, 246, 0.15);
  
  /* Ensure color scheme is properly declared */
  color-scheme: dark;
}

/* Force blue theme for iPhone 16 compatibility */
* {
  --bg: #0a0f1a !important;
  --fg: #e6f0ff !important;
  --accent: #3b82f6 !important;
  --accent-2: #1d4ed8 !important;
  --card: rgba(59, 130, 246, 0.08) !important;
  --border: rgba(59, 130, 246, 0.15) !important;
}

/* Light mode adaptation - still keep blue theme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1e3a8a;
    --muted: #64748b;
    --accent: #3b82f6; /* Keep blue consistent */
    --accent-2: #1d4ed8; /* Keep blue consistent */
    --card: rgba(59, 130, 246, 0.05);
    --border: rgba(59, 130, 246, 0.12);
    color-scheme: light;
  }
  
  /* Force blue theme even in light mode for iPhone 16 */
  body, html {
    background-color: #0a0f1a !important;
    color: #e6f0ff !important;
  }
}

/* Specific iPhone 16 targeting */
@media only screen and (device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) {
  body, html, * {
    background-color: #0a0f1a !important;
    color: #e6f0ff !important;
  }
  
  :root {
    --bg: #0a0f1a !important;
    --fg: #e6f0ff !important;
    --accent: #3b82f6 !important;
    --accent-2: #1d4ed8 !important;
  }
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%;
  
  /* Force blue theme everywhere for iPhone 16 */
  background-color: #0a0f1a !important;
  color: #e6f0ff !important;
}
  
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
  
  /* Force blue theme - direct fallback for iPhone 16 */
  background-color: #0a0f1a !important;
  color: #e6f0ff !important;
  
  /* iOS Safari fixes */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Force hardware acceleration for better performance */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Cover Image Section */
.cover-section {
  position: relative;
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 15, 26, 0.1) 0%,
    rgba(10, 15, 26, 0.3) 30%,
    rgba(10, 15, 26, 0.6) 60%,
    rgba(10, 15, 26, 0.85) 85%,
    var(--bg) 100%
  );
}

.cover-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Profile Picture */
.profile-section {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: -80px auto -40px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.profile-picture {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid var(--bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  overflow: hidden;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 100;
  background: rgba(10, 15, 26, 0.8);
  backdrop-filter: blur(15px);
  padding: 16px 0;
  margin: -32px -20px 0;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 0 0 12px 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px; 
  height: 44px; 
  border-radius: 12px; 
  background: var(--card);
  border: 1px solid var(--border); 
  overflow: hidden; 
  display: grid; 
  place-items: center;
  font-weight: 800; 
  color: var(--accent);
}

.name { 
  font-weight: 800; 
  letter-spacing: -0.02em; 
}

nav a { 
  color: var(--muted); 
  text-decoration: none; 
  margin-left: 16px; 
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

nav a:hover { 
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

nav a:hover::before {
  left: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding-top: 60px;
  margin-top: 40px;
}

/* Mobile Responsiveness */
@media (max-width: 860px) {
  .hero { 
    grid-template-columns: 1fr; 
    padding-top: 36px; 
  }
  
  .cover-section {
    height: 35vh;
    min-height: 250px;
  }
  
  .profile-picture {
    width: 120px;
    height: 120px;
    font-size: 36px;
  }
  
  .profile-section {
    margin: -60px auto -30px;
  }
  
  header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }
  
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  nav a {
    margin-left: 0;
    margin: 4px;
  }
  
  .title {
    text-align: center;
  }
  
  .cta-row {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 16px 12px 60px;
  }
  
  .cover-section {
    height: 30vh;
    min-height: 200px;
  }
  
  .profile-picture {
    width: 100px;
    height: 100px;
    font-size: 28px;
  }
  
  .title {
    font-size: clamp(24px, 8vw, 48px);
    line-height: 1.1;
  }
  
  .card {
    padding: 16px;
    margin-top: 12px !important;
  }
  
  .strengths-grid,
  .background-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .strength-item,
  .background-item {
    padding: 12px;
  }
}

.title { 
  font-size: clamp(28px, 6vw, 60px); 
  line-height: 0.95; 
  letter-spacing: -0.03em; 
  margin: -20px 0 16px; 
  color: var(--fg);
  max-width: 800px;
  width: 100%;
}

.gradient {
  background: linear-gradient(90deg, var(--accent, #3b82f6), var(--accent-2, #1d4ed8));
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent;
  
  /* Fallback for browsers that don't support background-clip */
  @supports not (-webkit-background-clip: text) {
    color: var(--accent, #3b82f6);
    background: none;
  }
}

.google-highlight {
  color: #60a5fa; /* Lighter blue - more vibrant */
  font-weight: 700;
}

.subtitle { 
  font-size: clamp(16px, 2.4vw, 20px); 
  color: var(--muted); 
  margin: 0 0 28px; 
}

.cta-row { 
  display: flex; 
  gap: 12px; 
  flex-wrap: wrap; 
}

/* View More Button */
.view-more-section {
  margin-top: 32px;
  text-align: center;
}

.btn-view-more {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.btn-view-more:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(2px);
}

.view-more-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-view-more:hover .view-more-icon {
  transform: translateY(2px);
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(3px);
  }
  60% {
    transform: translateY(1px);
  }
}

/* Hidden Content */
.hidden-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease-out, opacity 0.6s ease-out;
  opacity: 0;
}

.hidden-content.show {
  max-height: 5000px; /* Large enough to accommodate all content */
  opacity: 1;
  transition: max-height 0.8s ease-in, opacity 0.6s ease-in;
}

.btn {
  border: 1px solid var(--border, rgba(59, 130, 246, 0.15)); 
  background: var(--card, rgba(59, 130, 246, 0.08)); 
  color: var(--fg, #e6f0ff);
  padding: 12px 16px; 
  border-radius: 14px; 
  font-weight: 700; 
  text-decoration: none; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  backdrop-filter: saturate(140%) blur(6px);
  transition: transform 0.2s ease;
}

.btn.primary { 
  background: linear-gradient(90deg, var(--accent, #3b82f6), var(--accent-2, #1d4ed8)); 
  color: white; 
  border: none; 
}

.btn:hover { 
  transform: translateY(-1px); 
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.btn.disabled:hover {
  transform: none;
}

.card {
  border: 1px solid var(--border); 
  background: var(--card); 
  border-radius: 18px; 
  padding: 18px; 
  display: grid; 
  gap: 8px;
  backdrop-filter: saturate(140%) blur(6px);
}

.list { 
  display: grid; 
  gap: 12px; 
}

.list a { 
  color: var(--fg); 
  text-decoration: none; 
}

.item { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  padding: 12px 14px; 
  border-radius: 12px; 
  border: 1px dashed var(--border); 
}

.item small { 
  color: var(--muted); 
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

/* Connect Item Hover Effects */
.connect-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.connect-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.1), transparent);
  transition: left 0.5s ease;
}

.connect-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.05);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15);
}

.connect-item:hover::before {
  left: 100%;
}

.connect-item:hover .social-icon {
  transform: scale(1.2);
}

.connect-item:hover small {
  color: var(--accent);
}

/* Specific icon hover effects */
.linkedin-icon {
  color: #0077b5;
}

.email-icon {
  color: #ea4335;
}

.instagram-icon {
  color: #e4405f;
}

.github-icon {
  color: var(--accent);
}

/* Background Section */
.background-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.background-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.background-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.background-item h4 {
  margin: 0 0 8px 0;
  color: var(--fg);
  font-size: 16px;
}

.background-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Publications Section */
.publication-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.03);
  border: 1px solid rgba(34, 197, 94, 0.08);
  margin-top: 16px;
}

.publication-badge {
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  height: fit-content;
  flex-shrink: 0;
}

.publication-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.publication-content h4 a {
  color: var(--fg);
  text-decoration: none;
}

.publication-content h4 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.publication-authors {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 12px 0;
}

.publication-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pub-tag {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--fg);
  font-weight: 500;
}

footer { 
  margin-top: 40px; 
  color: var(--muted); 
  font-size: 14px; 
  display: flex; 
  flex-direction: column;
  gap: 16px; 
}

.footer-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-weight: 600;
  color: var(--fg);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.contact-item {
  font-size: 13px;
  color: var(--muted);
}

.footer-tagline {
  text-align: center;
  font-style: italic;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .footer-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-contact {
    text-align: center;
  }
}

.copy { 
  user-select: all; 
  cursor: pointer; 
}

/* Personal Quote Section */
.quote-section {
  margin: 24px 0;
}

.personal-quote {
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  padding: 16px 0;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  position: relative;
}

.personal-quote::before {
  content: '"';
  font-size: 48px;
  color: var(--accent);
  position: absolute;
  left: -8px;
  top: -8px;
  line-height: 1;
}

/* Floating Quote at Top */
.quote-section-top {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.personal-quote-floating {
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  padding: 0;
  text-align: center;
  opacity: 0.3;
  background: linear-gradient(
    to bottom,
    rgba(166, 192, 166, 0.1) 0%,
    rgba(166, 192, 166, 0.2) 50%,
    rgba(166, 192, 166, 0.4) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  line-height: 1.4;
  font-weight: 300;
}

/* Section Headers */
.section-header {
  margin-bottom: 16px;
}

.section-header strong {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Strengths Grid */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.strength-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.strength-item h4 {
  margin: 0 0 8px 0;
  color: var(--fg);
  font-size: 16px;
}

.strength-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Tech Stack Tags */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-tag {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}

.tech-tag.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
}

/* Values & Life Grid */
.values-life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.values-section h4,
.hobbies-section h4 {
  margin: 0 0 12px 0;
  color: var(--fg);
  font-size: 16px;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 8px 0;
  color: var(--muted);
  position: relative;
  padding-left: 20px;
}

.values-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.hobbies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hobby-tag {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  color: var(--fg);
}

/* Project List */
.project-list {
  margin-top: 16px;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

.project-item:last-child {
  border-bottom: none;
}

.project-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}


.project-item h4 {
  margin: 0 0 8px 0;
  color: var(--fg);
  font-size: 16px;
}

.project-item p {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}


.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-tag {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--fg);
  font-weight: 500;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Enhanced card hover effects */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
}

.card {
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .strengths-grid {
    grid-template-columns: 1fr;
  }
  
  .values-life-grid {
    grid-template-columns: 1fr;
  }
  
  .personal-quote {
    font-size: 16px;
  }
  
  .strength-item {
    padding: 12px;
  }
}

/* Light mode adjustments for cover overlay */
@media (prefers-color-scheme: light) {
  .cover-overlay {
    background: linear-gradient(
      to bottom,
      rgba(240, 253, 244, 0.1) 0%,
      rgba(240, 253, 244, 0.3) 30%,
      rgba(240, 253, 244, 0.6) 60%,
      rgba(240, 253, 244, 0.85) 85%,
      var(--bg) 100%
    );
  }
  
  header {
    background: rgba(240, 253, 244, 0.8);
    backdrop-filter: blur(15px);
  }
  
  .profile-picture {
    border-color: var(--bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  .strength-item {
    background: rgba(34, 197, 94, 0.03);
    border-color: rgba(34, 197, 94, 0.08);
  }
  
  .hobby-tag {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
  }
}
