/* General */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #111;
  background-color: #f5f7fa;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
}

/* Profile Image */
.profile-image {
  text-align: center;
  padding: 0 1rem 1rem;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

h1, h2, h3 {
margin-top: 0;
}

a {
color: #007aff;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

section {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Premium Glass Card Base Styles - Reusable */
.premium-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.premium-glass:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.premium-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.2) 100%);
  border-radius: 24px;
  pointer-events: none;
}

.premium-glass::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  border-radius: 23px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-glass:hover::after {
  opacity: 1;
}

/* Content positioning for glass cards */
.premium-glass h3,
.premium-glass h4,
.premium-glass p,
.premium-glass ul,
.premium-glass li,
.premium-glass .button {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #5d5d62;
  position: relative;
  z-index: 1;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.links a {
  font-weight: 600;
}

ul {
    padding-inline-start: 1em;
}

/* Reusable Button Component - Based on Hero Section */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

/* Button variants */
.btn-secondary {
  background: rgba(0, 122, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(0, 94, 207, 0.95);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.icon-link i {
width: 18px;
height: 18px;
}

.icon-link span {
font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.tags span {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tags span:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.project-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.project-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.project-info h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project ul {
  padding-left: 1.2rem;
  position: relative;
  z-index: 1;
}

.project .button {
  position: relative;
  z-index: 1;
}

/* Website items layout */
.website-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.website-item:hover {
    text-decoration: none;
}

.website-item:last-child {
  margin-bottom: 0;
}

.website-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  color: white;
}

.website-icon i {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.website-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.website-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
}

.website-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Responsive design for website items */
@media (max-width: 600px) {
  .website-item {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .website-icon {
    width: 50px;
    height: 50px;
  }
  
  .website-icon i {
    width: 24px;
    height: 24px;
  }
  
  .website-info h4 {
    font-size: 1rem;
  }
  
  .website-info p {
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  border-radius: 24px;
  margin: 2rem auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

footer p {
  position: relative;
  z-index: 1;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1c1c1e;
    color: #f5f5f7;
  }

  body a {
    color: #0a84ff;
  }

  .profile-image img {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 4px 16px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .hero h2 {
    color: #8e8e93;
  }

  .hero p {
    color: #5d5d62;
  }

  /* Glass cards in dark mode */
  .premium-glass {
    background: rgba(28, 28, 30, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .premium-glass::before {
    background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.1) 0%, 
      rgba(255, 255, 255, 0.05) 50%, 
      rgba(255, 255, 255, 0.08) 100%);
  }

  .tags span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f7;
  }

  .tags span:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .project-logo {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  /* Dark mode button overrides */
  .btn-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f7;
  }

  .btn-primary:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .website-info h4 {
    color: #f5f5f7;
  }

  .website-info p {
    color: #8e8e93;
  }

  .website-icon {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .icon-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f7;
  }

  .icon-link:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Responsive design */
@media (max-width: 600px) {

    section {
        margin-left: 2rem;
        margin-right: 2rem;
        padding: 0;
    }

    #featured-project {
        text-align: center;
        align-items: center;
    }
    
    #featured-project div {
        text-align: center;
        align-items: center;
    }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
  
  .project-logo {
    width: 70px;
    height: 70px;
    padding: 14px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  /* Keep hero centered on mobile */
  .hero {
    text-align: center;
  }
  
  /* Ensure other sections are left-aligned on mobile */
  section:not(.hero) {
    text-align: left;
  }
  
  .premium-glass {
    text-align: left;
  }
  
  .profile-image {
    text-align: center;
  }
}