:root {
  --primary-bg: #111;
  --secondary-bg: rgba(30, 30, 30, 0.95);
  --text-color: #fff;
  --accent-bg: #2a2a2a;
  --border-color: #444;
  --spacing-sm: 0.5rem;
  --spacing-md: 0.75rem;
  --spacing-lg: 1.5rem;
  --transition-standard: 0.3s;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  height: 100%;
  perspective: 1000px;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 75px; /* Account for smaller banner on mobile */
  }
}

/* Navigation Banner */
.nav-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  padding: 0.75rem 0;
}

/* Force mobile dark background */
@media (max-width: 768px) {
  .nav-banner {
    background: #111111 !important;
    background-image: none !important;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: nowrap;
    width: 100%;
  }
  
  .nav-link {
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
    font-weight: 500;
    flex-shrink: 0;
  }
}

.nav-social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  position: absolute;
  right: 0;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  color: rgba(0, 0, 0, 0.9);
}

/* LinkedIn specific styling */
.nav-icon-btn .fa-linkedin {
  color: #0A66C2;
}

.nav-icon-btn:hover .fa-linkedin {
  color: #0A66C2;
}

/* GitHub specific styling */
.nav-icon-btn .fa-github {
  color: #24292F;
}

.nav-icon-btn:hover .fa-github {
  color: #24292F;
}

/* Gmail specific styling */
.nav-icon-btn .fa-google {
  color: #EA4335;
}

.nav-icon-btn:hover .fa-google {
  color: #EA4335;
}

.nav-link {
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.9);
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a9eff, #7c3aed);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Social Banner */
.mobile-social-banner {
  display: none;
  position: fixed;
  top: 45px;
  left: 0;
  right: 0;
  background: none;
  z-index: 999;
  padding: 0.3rem 0;
  pointer-events: none;
}

.mobile-social-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 36px;
}

.mobile-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.mobile-social-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-banner {
    padding: 0.2rem 0;
    background: rgba(17, 17, 17, 0.9) !important;
    background-image: none !important;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)) !important;
    backdrop-filter: blur(10px);
    border-bottom: none;
    height: 32px;
  }
  
  .nav-container {
    padding: 0 1rem;
    /* justify-content: center; */
    width: 100%;
    /* overflow: hidden; */
  }
  
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    min-width: max-content;
    width: 100%;
    max-width: none;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  
  .nav-container {
    overflow: visible !important;
    width: 100vw;
    max-width: 100vw;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
    font-weight: 500;
    flex-shrink: 0;
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    text-shadow: none;
  }
  
  .nav-social-links {
    display: none; /* Hide social links in main banner on mobile */
  }
  
  .mobile-social-banner {
    display: block; /* Show mobile social banner */
  }
  

}

@media (max-width: 480px) {
  .nav-links {
    gap: 0.2rem;
  }
  
  .nav-link {
    font-size: 0.6rem;
    padding: 0.2rem 0.3rem;
  }
}

/* Main background with flowing light */
.main-background {
    background: linear-gradient(135deg,
        #000000 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #1a1a2e 75%,
        #000000 100%
    );
    position: relative;
    min-height: 100vh;
    overflow: visible;
    z-index: 1;
    width: 100%;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Flowing light effect from top right */
.main-background::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle at top right,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.03) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: flowLight 15s ease-in-out infinite;
    transform-origin: top right;
}

/* Additional ambient light layer */
.main-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: radial-gradient(
        circle at 20% 100%,
        rgba(255, 255, 255, 0.02) 0%,    /* Slightly stronger ambient light */
        rgba(255, 255, 255, 0.015) 20%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

/* Dark area for headshot */
#about::before {
    margin-top: 150px;
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 40%;
    height: calc(100% + 100px);
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.7) 20%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
    border-radius: 16px;
}

/* Additional subtle gradient for smoother transition */
#about::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 35%;
    width: 30%;
    height: calc(100% + 100px);
    background: linear-gradient(
        90deg,
        rgba(128, 128, 128, 0.1) 0%,
        rgba(128, 128, 128, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Hero to main content transition */
.hero-static::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(26, 26, 46, 0.5) 50%,
        rgba(26, 26, 46, 0.9) 100%
    );
    pointer-events: none;
}

@keyframes flowLight {
    0%, 100% {
        transform: rotate(-5deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: rotate(-3deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(-5deg) scale(1);
        opacity: 0.7;
    }
    75% {
        transform: rotate(-7deg) scale(1.2);
        opacity: 0.9;
    }
}

/* Layout components */
section {
  padding: 1.2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  margin-bottom: 80px;
  scroll-margin-top: 80px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease-out;
  width: calc(100% - var(--spacing-lg) * 2);
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 75px;
  }
}

section:hover {
}

/* Section glow effect */
section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    transform-origin: center;
}

@keyframes sectionGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
        opacity: 0.8;
    }
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  text-align: left;
  padding-left: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

/* Hero section */
.hero-static {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: url('https://prishdhagat.github.io/images/hero-bg.jpeg') no-repeat center center / cover;
  height: 100vh;
  padding: 3rem 5%;
  overflow: hidden;
  flex-wrap: nowrap;
  position: relative;
  z-index: 0;
  line-height: 1.6;
  font-size: 1.1rem;
}

.hero-static::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-link {
  color: inherit;
  text-decoration: none;
}

.hero-link:hover .typewriter {
  text-decoration: underline;
}

.top-right-links {
  position: fixed;
  top: 100px;
  right: 2rem;
  display: flex;
  gap: var(--spacing-md);
  z-index: 1001;
  display: none; /* Hidden since buttons are now in the banner */
}

.hero-right {
  color: rgb(0, 0, 0);
  text-align: center;
  padding-left: 3rem;
}

.hero-right h1 {
  margin-bottom: var(--spacing-sm);
}

.hero-right p {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

/* Buttons and interactive elements */
.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
  align-items: center;
}

.btn, .icon-btn {
  height: 40px;
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all var(--transition-standard);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  white-space: nowrap;
  box-sizing: border-box;
  line-height: 1;
}

.btn {
  background-color: rgb(0, 0, 0);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  height: 50px;
  font-weight: 700;
}

.icon-btn {
  background-color: white;
  color: black;
  gap: var(--spacing-sm);
  border: 1px solid transparent;
  height: 50px;
  padding: 0 2rem;
  font-size: 1.1rem;
}

.icon-btn .icon {
  font-size: 1.4rem;
}

/* Remove any potential conflicting styles */
.btn-group .btn,
.btn-group .icon-btn {
  height: 50px;
  min-height: 50px;
  max-height: 50px;
}

/* Hover effects for interactive elements */
.btn:hover,
.dropdown-btn:hover {
  background-color: white;
  color: black;
}

.case-card .btn:hover {
  background: none;
  transform: none;
  border-color: inherit;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(128, 128, 128, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Add hover area for the dropdown content */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* LinkedIn-specific styling */
.icon-btn .fa-linkedin {
  color: #0A66C2;
  font-size: 1.4rem;
}

.icon-btn:has(.fa-linkedin):hover {
  background-color: #0A66C2;
  color: white;
  border-color: white;
}

.icon-btn:has(.fa-linkedin):hover .icon {
  color: white;
}

/* GitHub-specific styling */
.icon-btn .fa-github {
  color: #24292F;
  font-size: 1.4rem;
}

.icon-btn:has(.fa-github):hover {
  background-color: #24292F;
  color: white;
  border-color: white;
}

.icon-btn:has(.fa-github):hover .icon {
  color: white;
}

/* Gmail-specific styling */
.gmail-btn {
  border: 1px solid transparent;
}

.gmail-btn:hover {
  background: linear-gradient(135deg, #EA4335, #FBBC05, #34A853, #4285F4);
  color: white;
  border-color: white;
}

.gmail-btn:hover .icon {
  color: white;
}

.gmail-btn .icon {
  color: #EA4335;
  font-size: 1.4rem;
}

/* About section */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
}

.about-image {
  position: relative;
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 400px;
  margin: auto 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2.5s ease-out;
  margin: auto;
}

.slide.active {
  opacity: 1;
  position: relative;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.about-text {
  flex: 1 1 55%;
  padding: 1.5rem;
  background-color: var(--secondary-bg);
  border-radius: 12px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.about-text p {
  margin-bottom: var(--spacing-md);
}

/* Cards and grids */
.project-gallery,
.skills-grid,
.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.card {
  color: var(--text-color);
  padding: 1.2rem;
  flex: 1 1 300px;
  text-align: center;
  word-wrap: break-word;
  min-height: 80px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-left: 2px solid var(--border-color);
  padding-left: 1.5rem;
}

/* Skill level tooltip */
.card::after {
  content: attr(data-skill-level);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip arrow */
.card::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.card:hover::after,
.card:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.card:hover {
}

/* Skill level colors */
.card[data-skill-level="Proficient"]::after {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.card[data-skill-level="Intermediate"]::after {
  background: linear-gradient(135deg, #808080, #606060);
}

.card[data-skill-level="Beginner"]::after {
  background: linear-gradient(135deg, #9C27B0, #8e24aa);
}

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 6;
}

.case-card {
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--border-color);
  padding-left: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.3;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.case-card .subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.case-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.case-card li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}

.case-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-color);
  opacity: 0.6;
}

.case-card li strong {
  color: #2196F3;
  margin-right: 0.5rem;
}

.case-card .btn {
  display: inline-flex;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
}

.case-card .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .case-card {
    padding: 1.2rem;
    padding-left: 1.2rem;
    min-height: 280px;
  }

  .case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .case-card .subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .case-card ul {
    margin-bottom: 0.8rem;
  }

  .case-card li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    font-size: 0.85rem;
  }

  .case-card .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 90px;
  }
}

.skills-grid .card {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.card:hover {
}

/* Contact and FAQ section */
.contact-faq {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: transparent;
  margin-bottom: var(--spacing-md);
  width: 100%;
  padding: 0;
}

/* Contact form styles */
.contact-form {
  flex: 1 1 calc(50% - var(--spacing-lg));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 1.5rem;
  min-width: 300px;
}

.contact-form h2 {
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

.form-group {
  position: relative;
  margin-bottom: var(--spacing-md);
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: auto;
  min-width: 150px;
  height: 40px;
  padding: 0 2rem;
  background: linear-gradient(45deg, #808080, #606060);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq {
  flex: 1 1 calc(50% - var(--spacing-lg));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: 1.5rem;
  min-width: 300px;
  align-self: flex-start;
}

.faq-item {
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  list-style: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 1rem;
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

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

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: #000;
}

/* Icon colors */
.icon {
  font-size: 1.2rem;
  margin-right: var(--spacing-sm);
}

.icon-primary { color: #3776AB; }
.icon-html { color: #E34F26; }
.icon-css { color: #1572B6; }
.icon-js { color: #F7DF1E; }
.icon-terminal { color: #cccccc; }
.icon-database { color: #f29111; }
.icon-diagram { color: #ff5722; }
.icon-design { color: #ff4444; }
.icon-aws { color: #FF9900; }
.icon-tools { color: #9C27B0; }
.icon-modeling { color: #00BCD4; }
.icon-github { color: #999; }
.icon-analytics { color: #4CAF50; }
.icon-docs { color: #3F51B5; }
.icon-email { color: #6DC5DC; }
.icon-file { color: #607D8B; }
.icon-chart { color: #00b8d4; }
.icon-list { color: #795548; }
.icon-table { color: #a0a0a0; }
.icon-code { color: #ffffff; }

/* Media Queries */
@media (max-width: 768px) {
  .hero-static {
    flex-direction: column;
    padding: var(--spacing-lg);
    text-align: center;
  }

  .hero-right {
    padding-left: 0;
    margin-top: var(--spacing-lg);
  }

  .hero-right h1 {
    font-size: 4rem;
  }

  .hero-right p {
    font-size: 1.5rem;
  }

  .about-image,
  .about-text {
    flex: 1 1 100%;
  }

  .contact-faq > * {
    flex: 1 1 100%;
  }
}

/* Section specific adjustments */

/* Dropdown styles */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: auto;
}

.dropdown-btn {
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: rgb(0, 0, 0);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.5rem;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Add padding to create hoverable area */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-btn:hover {
  background-color: none;
}

/* Skills Matrix */
.skills-category {
  margin-bottom: 3rem;
}

.skills-category h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-left: var(--spacing-md);
  border-left: 4px solid var(--text-color);
}

.skill-level {
  margin-bottom: 2rem;
}

.skill-level h4 {
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 1rem;
  padding-left: calc(var(--spacing-md) + 4px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 0 var(--spacing-md);
}

.card {
  padding: 1.2rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
}

.card i {
  font-size: 1.2rem;
}

.card span {
  font-size: 1rem;
  font-weight: 500;
}

/* Proficiency level colors */
.skill-level:nth-child(1) .card {
  border-left: 3px solid #4CAF50;
}

.skill-level:nth-child(2) .card {
  border-left: 3px solid #808080;
}

.skill-level:nth-child(3) .card {
  border-left: 3px solid #9C27B0;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .skills-category h3 {
    font-size: 1.5rem;
  }
  
  .skill-level h4 {
    font-size: 1.1rem;
  }
}

/* Skill level indicators */
.card {
  position: relative;
  overflow: visible;
}

.card::after {
  content: attr(data-skill-level);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.card:hover::after,
.card:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Skill level colors */
.card[data-skill-level="Proficient"]::after {
  background: linear-gradient(135deg, #4CAF50, #45a049);
}

.card[data-skill-level="Intermediate"]::after {
  background: linear-gradient(135deg, #808080, #606060);
}

.card[data-skill-level="Beginner"]::after {
  background: linear-gradient(135deg, #9C27B0, #8e24aa);
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid;
  white-space: nowrap;
  display: inline-block;
  font-size: 6rem;
  font-weight: 800;
  color: rgb(0, 0, 0);
  animation: 
    typing 2s steps(40, end),
    blink-caret 0.75s step-end infinite;
  margin-bottom: 0;
  line-height: 1.1;
  padding-bottom: 0.03em;
}

.typewriter:hover {
  text-decoration: underline;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgb(0, 0, 0) }
}

/* Swipe up effect */
.university-text {
  overflow: hidden;
  padding: 0;
  margin-top: -0.8rem;
}

.swipe-up {
  display: inline-block;
  animation: swipeUp 1.5s ease forwards;
  animation-delay: 2s;
  opacity: 0;
  transform: translateY(100%);
  margin-top: -0.8rem;
  line-height: 1.2;
}

@keyframes swipeUp {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile-first base adjustments */
body {
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

section {
  padding: var(--spacing-md);
  margin: var(--spacing-md);
}

/* =================================================== */
/* ============== Mobile Override Styles =============== */
/* =================================================== */

/* Hide mobile hero by default */
.hero-mobile {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-mobile.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet and below */
@media (max-width: 768px) {
  .hero-desktop {
    display: none;
  }

  .hero-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    min-height: 100vh;
    background: linear-gradient(135deg,
        #000000 0%,
        #1a1a2e 25%,
        #16213e 50%,
        #1a1a2e 75%,
        #000000 100%
    );
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
  }

  /* Add a subtle pattern overlay for mobile */
  .hero-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
  }

  .hero-mobile .hero-right {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 0;
  }

  .hero-mobile .hero-right h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .hero-mobile .hero-right .university-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .hero-mobile .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 90%;
    max-width: 320px;
    gap: 1rem;
  }
  
  .hero-mobile .btn, .hero-mobile .dropdown-btn {
    width: 100%;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
  }

  .top-right-links {
    position: fixed;
    top: 80px;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1001;
    display: none; /* Hide on mobile since we have banner buttons */
  }

  .top-right-links .icon-btn {
    height: 40px;
    padding: 0 1rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Center align social links on mobile */
  @media (max-width: 768px) {
    .top-right-links {
      display: none; /* Hide on mobile since we have banner buttons */
    }
  }

  .about-container {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image,
  .about-text {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 0;
  }

  #about::before,
  #about::after {
    display: none;
  }

  .contact-faq {
    flex-direction: column;
  }
}

/* Phone only */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  section {
    padding: 1.2rem 0.8rem;
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 1.8rem;
  }
  
  .btn, .dropdown-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .case-card, .card {
    padding: 1rem;
  }
  
  .case-card h3 {
    font-size: 1.1rem;
  }

  .case-card ul {
    font-size: 0.8rem;
  }

  /* Mobile hero improvements for very small screens */
  .hero-mobile {
    padding: 2rem 0.8rem;
  }

  .hero-mobile .hero-right h1 {
    font-size: 1.8rem;
  }

  .hero-mobile .hero-right .university-text {
    font-size: 0.9rem;
  }

  .hero-mobile .btn-group {
    width: 95%;
    max-width: 280px;
  }

  .top-right-links {
    display: none; /* Hide on mobile since we have banner buttons */
  }

  .top-right-links .icon-btn {
    display: none; /* Hide on mobile since we have banner buttons */
  }

  /* Ensure social links stay centered on very small screens */
  @media (max-width: 480px) {
    .top-right-links {
      display: none; /* Hide on mobile since we have banner buttons */
    }
  }
}

/* =================================================== */
/* ============== MINIMALIST THEME FIX =============== */
/* =================================================== */

/* --- 1. Global Minimalist Content Sections --- */
/* This removes the background and borders from all main content sections */
.about-text,
.case-card,
.card,
.contact-form,
.faq {
    background: none;
    border: none;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

/* Remove decorative elements from the about section */
#about::before,
#about::after {
    display: none !important;
}

/* --- 2. Case Study (PMCH) Page Specific Fixes --- */

/* Correctly size the header logo and layout */
#case-study .client-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

#case-study .client-logo {
    max-width: 80px; /* Constrain logo size */
    height: auto;
    flex-shrink: 0;
}

/* Remove double border on header title */
#case-study .client-header .section-title {
    border-bottom: none;
    margin-bottom: 0;
}

/* Restore left-border accent for case study content */
#case-study .analysis-item,
#case-study .documentation-item,
#case-study .result-item {
    padding-left: 1.5rem;
    border-left: 3px solid var(--border-color);
}

/* Remove background/borders from other case study elements */
#case-study .content-card,
#case-study .meta-item {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 0;
}

/* =================================================== */
/* =================== FINAL FIX =================== */
/* =================================================== */
/* This rule directly targets the oversized image on the case study page
   and fixes the layout problem definitively. */
#case-study .client-header img {
    max-width: 80px !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

/* About section responsive content */
.about-desktop {
  display: block;
}

.about-mobile {
  display: none;
}

/* Mobile version of about section */
@media (max-width: 768px) {
  .about-desktop {
    display: none;
  }

  .about-mobile {
    display: block;
  }

  .about-mobile p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .about-mobile p:last-child {
    margin-bottom: 0;
  }

  /* Additional mobile optimizations for about section */
  #about {
    padding: 1rem 1.2rem;
    margin-bottom: 60px;
  }

  .about-container {
    gap: 1.5rem;
  }

  .about-text {
    padding: 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .about-mobile p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  #about {
    padding: 0.8rem 1rem;
    margin-bottom: 50px;
  }
}

/* Mobile optimizations for content boxes */
@media (max-width: 768px) {
  /* Case Studies Grid */
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .case-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .case-card .subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .case-card ul {
    margin-bottom: 1rem;
  }

  .case-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
  }

  .case-card .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    min-width: 80px;
    height: 32px;
  }

  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    padding: 0;
  }

  .card {
    padding: 0.8rem;
    min-height: 60px;
    border-radius: 4px;
    gap: 0.5rem;
  }

  .card i {
    font-size: 1rem;
  }

  .card span {
    font-size: 0.85rem;
    font-weight: 500;
  }

  /* Contact Form */
  .contact-form {
    padding: 1rem;
    min-width: auto;
  }

  .contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .submit-btn {
    padding: 0 1.5rem;
    height: 36px;
    font-size: 0.9rem;
  }

  /* FAQ Section */
  .faq {
    padding: 1rem;
    min-width: auto;
  }

  .faq-item summary {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .faq-item p {
    padding: 0.8rem;
    font-size: 0.85rem;
  }

  /* Section spacing */
  section {
    padding: 1rem;
    margin-bottom: 60px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* Case Studies */
  .case-card {
    padding: 1.2rem;
    padding-left: 1.2rem;
    min-height: 300px;
  }

  .case-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .case-card .subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .case-card li {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
  }

  .case-card .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 90px;
  }

  /* Skills Grid */
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
  }

  .card {
    padding: 0.6rem;
    min-height: 50px;
  }

  .card i {
    font-size: 0.9rem;
  }

  .card span {
    font-size: 0.8rem;
  }

  /* Contact Form */
  .contact-form {
    padding: 0.8rem;
  }

  .contact-form h2 {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .form-group textarea {
    min-height: 80px;
  }

  .submit-btn {
    padding: 0 1.2rem;
    height: 32px;
    font-size: 0.85rem;
  }

  /* FAQ */
  .faq {
    padding: 0.8rem;
  }

  .faq-item summary {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .faq-item p {
    padding: 0.6rem;
    font-size: 0.8rem;
  }

  /* Section spacing */
  section {
    padding: 0.8rem;
    margin-bottom: 50px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }
}

/* =================================================== */
/* ============== CASE STUDY MOBILE OPTIMIZATIONS =============== */
/* =================================================== */

/* Mobile optimizations for case study page */
@media (max-width: 768px) {
  /* Case study header */
  #case-study .client-header {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  #case-study .client-logo {
    max-width: 60px;
  }

  #case-study .client-header .section-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Case study meta section */
  .case-study-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .meta-item {
    padding: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .meta-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .meta-item p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Case study sections */
  .case-study-section {
    margin-bottom: 2rem;
  }

  .case-study-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .case-study-section h3 i {
    font-size: 1rem;
    margin-right: 0.5rem;
  }

  /* Content cards */
  .content-card {
    padding: 0.8rem 0;
  }

  .content-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  /* Feature lists */
  .feature-list {
    padding-left: 1rem;
  }

  .feature-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }

  .highlight {
    font-weight: 600;
    color: #2196F3;
  }

  /* Analysis grid */
  .analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .analysis-item {
    padding: 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .analysis-item .icon-wrapper {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }

  .analysis-item .icon-wrapper i {
    font-size: 1.2rem;
  }

  .analysis-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .analysis-item p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Documentation grid */
  .documentation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .documentation-item {
    padding: 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .documentation-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .documentation-item h4 i {
    font-size: 0.9rem;
  }

  .documentation-item p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .documentation-content {
    text-align: center;
  }

  .documentation-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .documentation-image:hover {
    transform: scale(1.02);
  }

  /* Expanded image styles for mobile */
  .documentation-image.expanded {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 95vw;
    max-height: 90vh;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }

  /* Results grid */
  .results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .result-item i {
    font-size: 1.2rem;
    color: #4CAF50;
    margin-top: 0.1rem;
  }

  .result-item p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
  }

  /* Case study navigation */
  .case-study-nav {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  .case-study-nav .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Section spacing */
  #case-study {
    padding: 1rem;
    margin-bottom: 60px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  /* Case study header */
  #case-study .client-header {
    gap: 0.8rem;
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
  }

  #case-study .client-logo {
    max-width: 50px;
  }

  #case-study .client-header .section-title {
    font-size: 1.2rem;
  }

  /* Case study meta section */
  .case-study-meta {
    gap: 0.8rem;
  }

  .meta-item {
    padding: 0.6rem;
  }

  .meta-item h4 {
    font-size: 0.85rem;
  }

  .meta-item p {
    font-size: 0.8rem;
  }

  /* Case study sections */
  .case-study-section {
    margin-bottom: 1.5rem;
  }

  .case-study-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  /* Content cards */
  .content-card p {
    font-size: 0.85rem;
  }

  /* Feature lists */
  .feature-list li {
    font-size: 0.8rem;
  }

  /* Analysis grid */
  .analysis-item {
    padding: 0.8rem;
  }

  .analysis-item .icon-wrapper {
    width: 35px;
    height: 35px;
    margin-bottom: 0.6rem;
  }

  .analysis-item .icon-wrapper i {
    font-size: 1rem;
  }

  .analysis-item h4 {
    font-size: 0.9rem;
  }

  .analysis-item p {
    font-size: 0.8rem;
  }

  /* Documentation grid */
  .documentation-grid {
    gap: 1.2rem;
  }

  .documentation-item {
    padding: 0.8rem;
  }

  .documentation-item h4 {
    font-size: 0.9rem;
  }

  .documentation-item p {
    font-size: 0.8rem;
  }

  /* Results grid */
  .result-item {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .result-item i {
    font-size: 1rem;
  }

  .result-item p {
    font-size: 0.8rem;
  }

  /* Case study navigation */
  .case-study-nav {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
  }

  .case-study-nav .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  /* Section spacing */
  #case-study {
    padding: 0.8rem;
    margin-bottom: 50px;
  }
}

/* =================================================== */
/* ============== CASE STUDY DESKTOP STYLES =============== */
/* =================================================== */

/* Desktop styles for case study page (769px and above) */
@media (min-width: 769px) {
  /* Base case study styles for desktop */
  .case-study-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  .case-study-intro {
    margin-bottom: 3rem;
  }

  /* Case study meta section - desktop */
  .case-study-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .meta-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .meta-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }

  .meta-item i {
    font-size: 1.5rem;
    color: #2196F3;
    margin-top: 0.2rem;
  }

  .meta-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
  }

  .meta-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  /* Case study sections - desktop */
  .case-study-section {
    margin-bottom: 3rem;
  }

  .case-study-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .case-study-section h3 i {
    font-size: 1.5rem;
    color: #2196F3;
  }

  /* Content cards - desktop */
  .content-card {
    padding: 1.5rem 0;
  }

  .content-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
  }

  /* Feature lists - desktop */
  .feature-list {
    list-style: none;
    padding-left: 0;
  }

  .feature-list li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
  }

  .feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2196F3;
    font-weight: bold;
  }

  .highlight {
    font-weight: 600;
    color: #2196F3;
  }

  /* Analysis grid - desktop */
  .analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .analysis-item {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
  }

  .analysis-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
  }

  .analysis-item .icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .analysis-item:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
  }

  .analysis-item .icon-wrapper i {
    font-size: 1.8rem;
    color: #2196F3;
  }

  .analysis-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
  }

  .analysis-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  /* Documentation grid - desktop */
  .documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .documentation-item {
    padding: 2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .documentation-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }

  .documentation-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .documentation-item h4 i {
    font-size: 1.2rem;
    color: #2196F3;
  }

  .documentation-item p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
  }

  .documentation-content {
    text-align: center;
  }

  .documentation-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .documentation-image:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
  }

  /* Expanded image styles for desktop */
  .documentation-image.expanded {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  /* Results grid - desktop */
  .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .result-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
  }

  .result-item i {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-top: 0.2rem;
  }

  .result-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  /* Case study navigation - desktop */
  .case-study-nav {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
  }

  .case-study-nav .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
  }

  .case-study-nav .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  /* Section spacing - desktop */
  #case-study {
    padding: 2rem;
    margin-bottom: 80px;
  }
}

/* =================================================== */
/* ============== PUBLICATIONS SECTION =============== */
/* =================================================== */

/* Publications Grid - Desktop */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  padding: 0;
  width: 100%;
  position: relative;
  z-index: 6;
}

.publication-card {
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--border-color);
  padding-left: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.publication-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.publication-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
  line-height: 1.3;
  font-weight: 600;
}

.publication-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.publication-meta .journal {
  color: #2196F3;
  font-weight: 500;
}

.publication-meta .year {
  color: #4CAF50;
  font-weight: 500;
}

.publication-meta .co-authors {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.publication-abstract {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.publication-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.publication-links .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.publication-links .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Mobile optimizations for Publications */
@media (max-width: 768px) {
  .publications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .publication-card {
    padding: 1.5rem;
    padding-left: 1.5rem;
  }

  .publication-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .publication-meta {
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
  }

  .publication-abstract {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .publication-links {
    gap: 0.8rem;
  }

  .publication-links .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 80px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .publications-grid {
    gap: 1.2rem;
  }

  .publication-card {
    padding: 1.2rem;
    padding-left: 1.2rem;
  }

  .publication-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .publication-meta {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .publication-abstract {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .publication-links {
    gap: 0.6rem;
  }

  .publication-links .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    min-width: 70px;
  }
}

