/* Import Lato and Inter fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --dark-bg: #1a1a1a;
  --darker-bg: #0d0d0d;
  --card-bg: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #404040;
  --accent-color: #00d4ff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

html {
  background: var(--dark-bg) !important;
  background-color: var(--dark-bg) !important;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--dark-bg) !important;
  background-color: var(--dark-bg) !important;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Creative Typography */
.creative-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.creative-subheading {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.impact-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-divider {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.03);
  text-align: center;
  margin: 4rem 0;
  user-select: none;
  pointer-events: none;
}

/* Navigation */
.navbar {
  background-color: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary) !important;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  color: var(--text-secondary) !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Video */
.hero-video {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin: 0 auto;
  display: block;
}

.hero-video.fade-away {
  opacity: 0.1;
  transform: scale(0.90);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-flex {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3vw;
  height: 100%;
  width: 100%;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  /* Optionally add padding-left if you want to ensure text never overlaps image on small screens */
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Placeholder Elements */
.video-placeholder {
  width: 100%;
  max-width: 600px;
  height: 300px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--darker-bg) 100%);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.video-placeholder:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

.placeholder-content {
  text-align: center;
  color: var(--text-secondary);
}

.placeholder-content i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.placeholder-content p {
  font-size: 1.1rem;
  margin: 0;
}

.placeholder-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--darker-bg) 100%);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.placeholder-image:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

/* Cards */
.card {
  background-color: #232323 !important;
  border: 1px solid #333 !important;
  border-radius: 12px;
  color: #e0e6ed !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-body {
  padding: 2rem;
  background: transparent !important;
}

.card-title, .card-text, .card-body, .card .badge {
  color: #e0e6ed !important;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.card .badge {
  background: linear-gradient(90deg, #0d6efd 60%, #4f8cff 100%) !important;
  color: #fff !important;
  border-radius: 1rem;
  font-size: 0.95em;
  margin-right: 0.25em;
  margin-bottom: 0.25em;
  padding: 0.4em 1em;
  font-weight: 500;
}

.card .badge:last-child {
  margin-right: 0;
}

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

/* Project Carousel */
.project-carousel {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.project-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.project-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 12px;
  background-color: var(--card-bg);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  padding: 1rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 1rem;
}

.carousel-nav.next {
  right: 1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.section.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
}

.section.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* Resume Section */
.resume-section {
  background-color: var(--darker-bg);
}

.resume-iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: 12px;
  background-color: white;
}

.download-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.about-paragraph {
  margin-bottom: 2rem;
}

.philosophy-item {
  margin-bottom: 2rem;
}

.philosophy-item h4 {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.philosophy-item p {
  font-family: 'Lato', sans-serif;
  color: var(--text-secondary);
}

/* Skills and Experience */
.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-category h5 {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.experience-item h5 {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.experience-item p {
  font-family: 'Lato', sans-serif;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* Contact Information */
.contact-info {
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
  padding: 1rem;
}

.contact-item p {
  font-family: 'Lato', sans-serif;
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

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

.contact-item a:hover {
  color: var(--accent-color);
}

/* Blog Page */
.coming-soon {
  padding: 2rem;
}

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

.topic-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.topic-item i {
  margin-right: 0.75rem;
}

.newsletter-signup {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Footer */
.footer {
  background-color: var(--darker-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-family: 'Lato', sans-serif;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .tagline {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .project-iframe {
    height: 300px;
  }
  
  .resume-iframe {
    height: 500px;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
  }
  
  .video-placeholder,
  .placeholder-image {
    height: 200px;
  }
  
  .hero-video {
    max-width: 100%;
    border-radius: 8px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info .row {
    flex-direction: column;
  }
  
  .contact-item {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .creative-heading {
    font-size: clamp(2.5rem, 6vw, 6rem);
  }
  
  .creative-subheading {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
  }
  
  .impact-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
  }
  
  .section-divider {
    font-size: clamp(3rem, 8vw, 10rem);
  }
}

/* Enhanced Animation System */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInDelay1 {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  50% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDelay2 {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  66% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
}

.fade-in-scale {
  opacity: 0;
  animation: fadeInScale 0.8s ease-out forwards;
}

.fade-in-delay-1 {
  opacity: 0;
  animation: fadeInDelay1 1.2s ease-out forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  animation: fadeInDelay2 1.4s ease-out forwards;
}

/* Staggered animations for cards and lists */
.stagger-animate > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animate > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animate > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animate > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animate > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animate > *:nth-child(6) { animation-delay: 0.6s; }

/* Smooth transitions for interactive elements */
.card, .btn, .nav-link, .gallery-item, .philosophy-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

/* Loading states */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button styles */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border: none;
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--dark-bg);
}

.btn-outline-light {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.btn-outline-light:hover {
  background-color: var(--text-secondary);
  border-color: var(--text-secondary);
  color: var(--dark-bg);
}

/* Process and interest icons */
.process-icon,
.interest-icon {
  color: var(--accent-color);
}

/* CTA buttons */
.cta-buttons {
  margin-top: 2rem;
}

/* Additional utility classes */
.bg-dark {
  background-color: var(--darker-bg) !important;
}

.text-primary {
  color: var(--accent-color) !important;
}

.text-muted {
  color: var(--text-secondary) !important;
}

/* Markdown Content Styling */
.project-content {
  padding: 1rem 2rem;
  background-color: var(--darker-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-align: left;
  height: 600px;
  overflow-y: auto;
  max-height: 600px;
}

.project-content h1,
.project-content h2,
.project-content h3,
.project-content h4,
.project-content h5,
.project-content h6 {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.project-content p {
  font-family: 'Lato', sans-serif;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-content a {
  color: var(--accent-color);
  text-decoration: none;
}

.project-content a:hover {
  text-decoration: underline;
}

.project-content ul,
.project-content ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.project-content li {
  font-family: 'Lato', sans-serif;
  margin-bottom: 0.5rem;
}

.project-content pre {
  background-color: #000;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.project-content code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.project-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
}

.project-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.project-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.project-content th,
.project-content td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.project-content th {
  background-color: var(--darker-bg);
  color: var(--text-primary);
  font-weight: 600;
}

.project-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.readme-container {
  background: #232323;
  color: #e0e6ed;
  border-radius: 0 0 .5rem .5rem;
  padding: 2rem;
  max-width: 100%;
  overflow-x: auto;
}

.readme-container.markdown-body {
  /* Use GitHub markdown styles */
  box-shadow: none;
  border: none;
}

.hero-photo-container {
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translateY(40%); /* Adjust to vertically align as desired */
  z-index: 1;
  height: 80%;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero-photo {
  max-height: 750px;
  width: auto;
  object-fit: contain;
  /* Fade left and right using mask */
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 20%, transparent 100%);
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
  /* Optional: add a little margin to separate from text if needed */
  margin-left: 0;
}

@media (max-width: 900px) {
  .hero-photo-container {
    max-height: 180px;
    top: 60%;
    transform: translateY(-50%);
  }
  .hero-photo {
    max-height: 180px;
  }
}

@media (max-width: 600px) {
  .hero-photo-container {
    display: none;
  }
}

/* Enhanced Button Animations */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Enhanced Gallery Items */
.gallery-item {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 212, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Enhanced Shadows */
.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Enhanced Image Hover Effects */
.project-diagram,
.gallery-item img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-diagram:hover,
.gallery-item:hover img {
  transform: scale(1.05);
}

/* About Page Hero Layout */
.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  margin-top: 1rem;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-image-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-portrait {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.hero-portrait:hover {
  transform: scale(1.05);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

.about-hero .hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design for About Hero */
@media (max-width: 768px) {
  .about-hero {
    padding: 4rem 0 2rem 0;
    margin-top: 2.5rem;
  }
  
  .hero-portrait {
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 4px 16px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  }
}

@media (max-width: 480px) {
  .about-hero {
    padding: 5rem 0 2rem 0;
    margin-top: 3rem;
  }
  
  .hero-portrait {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
      0 3px 12px rgba(0, 0, 0, 0.3),
      inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  }
  
  .hero-layout {
    gap: 1.5rem;
    padding: 0 1rem;
  }
}

/* Enhanced Badge Animations */
.badge {
  transition: all 0.3s ease;
}

.badge:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Enhanced Focus States */
.btn:focus,
.card:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Enhanced Typography */
.section-title,
.card-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

/* Enhanced Loading and Transition States */
body.loading {
  overflow: hidden;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.page-transitioning {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Loading States */
.iframe-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--darker-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.iframe-loading p {
  margin-top: 1rem;
  color: var(--text-secondary);
}

/* Accessibility Improvements */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-color);
  color: var(--dark-bg);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Enhanced Focus States */
.card:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  transform: translateY(-4px);
}

/* Enhanced Navigation Active States */
.nav-link.active {
  color: var(--accent-color) !important;
}

.nav-link.active::after {
  width: 100%;
}

/* Enhanced Hero Parallax */
.hero {
  will-change: transform;
}

/* Enhanced Gallery Loading */
.gallery-grid.loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Enhanced Button States */
.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced Card Loading States */
.card.loading {
  position: relative;
  overflow: hidden;
}

.card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: card-loading 1.5s infinite;
}

@keyframes card-loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced Mobile Interactions */
@media (max-width: 768px) {
  .btn::before {
    display: none; /* Disable shimmer on mobile for better performance */
  }
  
  .card:hover {
    transform: translateY(-4px); /* Reduced hover effect on mobile */
  }
  
  .ripple {
    display: none; /* Disable ripple on mobile for better performance */
  }
}

/* Enhanced Print Styles */
@media print {
  .btn::before,
  .card::before,
  .nav-link::after,
  .section-title::after {
    display: none;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .hero {
    transform: none !important;
  }
} 