/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --card-bg: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* General styles */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.highlight-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  background: var(--dark-bg);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image-container {
  position: relative;
  display: inline-block;
}

.hero-image {
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.floating-icon.python {
  top: 10%;
  right: 10%;
  color: #3776ab;
  animation-delay: -1s;
}

.floating-icon.tensorflow {
  top: 60%;
  right: -10%;
  color: #ff6f00;
  animation-delay: -2s;
}

.floating-icon.aws {
  bottom: 20%;
  left: -10%;
  color: #ff9900;
  animation-delay: -3s;
}

.floating-icon.ml {
  top: 30%;
  left: 10%;
  color: var(--accent-color);
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(90deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
  75% { transform: translateY(-10px) rotate(270deg); }
}

/* Buttons */
.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-light {
  border: 2px solid var(--text-secondary);
  color: var(--text-secondary);
  background: transparent;
}

.btn-outline-light:hover {
  background: var(--text-secondary);
  color: var(--dark-bg);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

/* Expertise Section */
.expertise-section {
  background: var(--darker-bg);
}

.expertise-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  border-radius: 20px;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.expertise-card:hover::before {
  opacity: 0.05;
}

.expertise-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
}

.expertise-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.expertise-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.expertise-list {
  list-style: none;
}

.expertise-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.expertise-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* Projects Section */
.projects-section {
  background: var(--dark-bg);
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-card.featured {
  border: 2px solid var(--primary-color);
  position: relative;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through when hidden */
}

.project-card:hover .project-overlay {
  opacity: 1;
  pointer-events: auto; /* Enable interactions when visible */
}

.project-actions {
  display: flex;
  gap: 1rem;
}

.project-content {
  padding: 1.5rem;
}

.project-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-impact {
  color: var(--success-color);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Project video styles */
.project-video {
  position: relative;
  overflow: hidden;
  height: 300px;
  background: var(--card-bg);
}

.project-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.project-image-carousel {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image-carousel .carousel-inner {
  height: 100%;
}

.project-image-carousel .carousel-item {
  height: 100%;
}

.project-image-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 15%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .carousel-control-prev,
.project-card:hover .carousel-control-next {
  opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

/* Enhanced project cards for videos */
.project-card .project-video + .project-content {
  padding: 1.5rem;
}

.project-card .project-image-carousel + .project-content {
  padding: 1.5rem;
}

/* Video overlay adjustments */
.project-video .project-overlay {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
}

/* Position overlay button in corner for video projects */
.project-video .project-overlay {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.project-video .project-actions {
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

/* Improve button visibility and interaction */
.project-actions .btn {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--dark-bg) !important;
  border: none !important;
  font-weight: 600;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.project-actions .btn:hover {
  background: white !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ensure iframe remains interactive */
.project-video iframe {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* Adjust carousel controls to not conflict with overlay */
.project-image-carousel .carousel-control-prev,
.project-image-carousel .carousel-control-next {
  z-index: 2;
  pointer-events: auto;
}

/* Enhanced hover state for better UX */
.project-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
}

/* Reduce transform on video cards to prevent iframe issues */
.project-card.featured:hover {
  transform: translateY(-5px) scale(1.01);
}

/* Add subtle border highlight on hover */
.project-card:hover {
  border-color: var(--primary-color);
}

.project-card.featured:hover {
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

/* Improve overlay animation timing */
.project-overlay {
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

/* Add hover delay to prevent accidental triggers */
.project-card {
  transition-delay: 0.1s;
}

.project-card:hover .project-overlay {
  transition-delay: 0.2s;
}

/* Loading state for iframes */
.project-video iframe {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--border-color) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.project-video iframe[src] {
  animation: none;
  background: none;
}

/* Enhanced hover effects for video projects */
.project-card:hover .project-video iframe {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Tech tag special styling for featured projects */
.project-card.featured .tech-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Skills Section */
.skills-section {
  background: var(--darker-bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.skill-category h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.skills-list {
  space-y: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-item i {
  width: 24px;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.skill-item span {
  flex: 1;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-level {
  width: 100px;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-level::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: var(--level, 0%);
  transition: width 1s ease;
}

.skill-level.animate::after {
  animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
  from { width: 0%; }
  to { width: var(--level, 0%); }
}

.skill-level[data-level="95"]::after { width: 95%; }
.skill-level[data-level="92"]::after { width: 92%; }
.skill-level[data-level="90"]::after { width: 90%; }
.skill-level[data-level="88"]::after { width: 88%; }
.skill-level[data-level="87"]::after { width: 87%; }
.skill-level[data-level="85"]::after { width: 85%; }
.skill-level[data-level="80"]::after { width: 80%; }
.skill-level[data-level="75"]::after { width: 75%; }

/* About Section */
.about-section {
  background: var(--dark-bg);
}

.about-image img {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-content .lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-item i {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.highlight-item h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.highlight-item p {
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: var(--darker-bg);
}

.contact-form-container {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
}

.form-control, .form-select {
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.form-control:focus, .form-select:focus {
  background: var(--dark-bg);
  border-color: var(--primary-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.contact-info-item i {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.contact-info-item h5 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-info-item p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-info-item a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand h5 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a {
  position: relative;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  margin: 0;
}

/* Modal */
.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  color: var(--text-primary);
}

.btn-close {
  filter: invert(1);
}

/* Additional enhancements */

/* Navbar scroll effects */
.navbar.scrolled {
  background: rgba(2, 6, 23, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
  transition: all 0.3s ease, transform 0.3s ease;
}

/* Enhanced skill level animations */
.skill-level.animate::after {
  animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
  from { width: 0%; }
  to { width: var(--level, 0%); }
}

/* Project card enhanced hover effects */
.project-card {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

/* Expertise card pulse effect */
.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  border-radius: 20px;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.expertise-card:hover::before {
  opacity: 0.05;
}

/* Enhanced floating animations */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  25% { 
    transform: translateY(-10px) rotate(90deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
  }
  50% { 
    transform: translateY(-20px) rotate(180deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  }
  75% { 
    transform: translateY(-10px) rotate(270deg);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
  }
}

/* Contact form enhancements */
.form-control::placeholder,
.form-select option:first-child {
  color: var(--text-muted);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--primary-color);
  transition: border-color 0.3s ease;
}

/* Button loading state */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.btn-success {
  background: var(--success-color) !important;
  border-color: var(--success-color) !important;
}

/* Stats animation */
.stat-number {
  transition: all 0.3s ease;
}

/* Enhanced modal */
.modal-content {
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-backdrop {
  backdrop-filter: blur(5px);
}

/* Tech tags hover effect */
.tech-tag {
  transition: all 0.3s ease;
  cursor: default;
}

.tech-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Footer links hover effect */
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-links a {
  position: relative;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.3s ease;
}

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

.fa-spinner {
  animation: spin 1s linear infinite;
}

/* Project CTA button styling */
.project-cta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.project-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.project-cta .btn:hover {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Ensure video project overlays don't interfere with new buttons */
.project-video .project-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Only show video overlay on explicit hover over video area */
.project-video:hover .project-overlay {
  opacity: 0.8;
  pointer-events: auto;
}

/* Make sure content area buttons always work */
.project-content {
  position: relative;
  z-index: 2;
}

/* Adjust project content spacing */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 300px); /* Adjust based on video/image height */
}

/* For video projects */
.project-card .project-video + .project-content {
  height: auto;
  min-height: 280px;
}

/* For image projects */
.project-card .project-image + .project-content,
.project-card .project-image-carousel + .project-content {
  height: auto;
  min-height: 300px;
}

/* Push CTA to bottom */
.project-content {
  justify-content: space-between;
}

.project-meta {
  flex: 1;
}

/* Group project metadata */
.project-meta h4,
.project-meta p,
.project-tech,
.project-impact {
  margin-bottom: 1rem;
}

.project-tech {
  margin-bottom: 1.5rem;
}

/* Enhanced button states */
.project-cta .btn {
  position: relative;
  overflow: hidden;
}

.project-cta .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 ease;
}

.project-cta .btn:hover::before {
  left: 100%;
}

/* Responsive adjustments for CTA buttons */
@media (max-width: 768px) {
  .project-cta .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .project-content {
    min-height: auto;
  }
}

