/* Subtle hover effect keyframes */
@keyframes subtleGlow {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(184, 41, 39, 0.15);
  }
  50% {
    box-shadow: 0 4px 12px rgba(184, 41, 39, 0.25);
  }
}

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

/* Modern Navigation Dropdown */
.modern-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(184, 41, 39, 0.2);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modern-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modern-dropdown li {
  padding: 0;
  margin: 0;
}

.modern-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  text-align: left;
}

.modern-dropdown a:hover {
  background: rgba(184, 41, 39, 0.1);
  color: var(--primary-red);
}

/* Modern Action Buttons */
.modern-button {
  background: white;
  border: 2px solid var(--primary-red);
  color: var(--primary-red);
  padding: 12px 20px;
  border-radius: 99rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  font-size: var(--font-small) !important;
}

.modern-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 41, 39, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.modern-button:hover::before {
  left: 100%;
}

.modern-button:hover {
  background: var(--primary-red);
  color: white;
  box-shadow: 0 4px 12px rgba(184, 41, 39, 0.3);
  transform: translateY(-1px);
}

.modern-button.secondary {
  border-color: var(--accent-gray);
  color: var(--accent-gray);
}

.modern-button.secondary:hover {
  background: var(--accent-gray);
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* Modern Portfolio Cards */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 41, 39, 0.1);
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.portfolio-card-header {
  padding: 20px 20px 10px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2;
  position: relative;
}

.portfolio-card-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 41, 39, 0.02);
  position: relative;
  overflow: hidden;
}

.portfolio-card-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 41, 55, 0.95);
  color: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card-overlay .portfolio-title {
  color: white;
  font-size: var(--font-h3);
  margin-bottom: 10px;
  text-align: center;
}

.portfolio-card-overlay .portfolio-tagline {
  color: var(--primary-red);
  margin-bottom: 15px;
  text-align: center;
  font-style: italic;
}

.portfolio-card .modern-button {
  width: 100%;
  background: var(--primary-red);
  color: white;
}
.portfolio-card .modern-button:hover {
  background: var(--primary-red);
  color: white;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
}

.portfolio-card-overlay .portfolio-description {
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.portfolio-card-overlay .read-more-btn {
  align-self: center;
  margin-top: auto;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
  border-radius: 12px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

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

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(184, 41, 39, 0.15);
  border-color: var(--primary-red);
}

.portfolio-tag {
  background: var(--primary-red);
  color: white;
  padding: 6px 16px;
  border-radius: 99rem;
  font-weight: normal;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  font-size: var(--font-small);
}

.portfolio-title {
  font-size: var(--font-h3);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: center;
}

.portfolio-tagline {
  color: var(--primary-red);
  font-weight: 600;
  margin-bottom: 0;
  font-style: italic;
  font-size: var(--font-p);
  text-align: center;
}

.portfolio-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: var(--font-p);
  text-align: center;
}

.portfolio-card-footer {
  display: none;
}

/* Modern Contact Section */
.contact-modern {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 41, 39, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  color: var(--text-dark);
  text-align: left;
  gap: 16px;
  font-size: var(--font-p);
}

.contact-item i {
  color: var(--primary-red);
  margin-right: 15px;
  width: 20px;
  margin-top: 2px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 41, 39, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
  text-align: left;
  font-size: var(--font-p);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 15px;
  color: var(--text-dark);
  font-size: var(--font-p);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(184, 41, 39, 0.1);
}

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

/* Modern Footer */
.modern-footer {
  background: #000000;
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-content p {
  font-size: var(--font-p);
}

.footer-section {
  color: white;
  text-align: left;
}

.footer-section h3 {
  color: var(--primary-red);
  margin-bottom: 20px;
  font-size: var(--font-p);
  font-weight: 600;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 12px;
  text-align: left;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding: 5px 0;
}

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

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

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

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #9ca3af;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: calc(var(--font-p) * 0.82) !important;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }

  .footer-section:last-child {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 20px 15px;
  }

  .portfolio-card {
    min-height: 300px;
  }

  .portfolio-card-header {
    padding: 15px;
  }

  .portfolio-card-overlay {
    padding: 20px;
  }

  .portfolio-card-overlay .portfolio-title {
    font-size: var(--font-h3);
  }

  .portfolio-card-overlay .portfolio-tagline {
    font-size: var(--font-p);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Mobile Footer - Stack all sections vertically */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .footer-section {
    text-align: left;
    margin-bottom: 20px;
  }

  .footer-section:last-child {
    grid-column: unset;
    margin-top: 0;
    text-align: left;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav li {
    text-align: left;
    margin-bottom: 8px;
  }

  .modern-dropdown {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 300px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .modern-footer {
    padding: 40px 15px 20px;
  }

  .footer-content {
    gap: 30px;
    text-align: left;
  }

  .footer-section {
    text-align: left;
  }

  .footer-section h3 {
    font-size: var(--font-p);
    margin-bottom: 15px;
  }

  .footer-nav {
    align-items: flex-start;
  }

  .footer-nav li {
    margin-bottom: 6px;
    text-align: left;
  }

  .footer-nav a {
    font-size: var(--font-p);
}

/* Portfolio Detail Extra Small Mobile */
@media (max-width: 480px) {
  .portfolio-detail {
    padding: 20px 15px;
  }

  .detail-header {
    margin-bottom: 30px;
  }

  .detail-title {
    font-size: calc(var(--font-h1) * 0.47);
    margin-bottom: 15px;
  }

  .detail-tagline {
    font-size: var(--font-p);
    margin-bottom: 20px;
  }

  .detail-image {
    margin: 15px 0;
    padding: 0 5px;
  }

  .detail-image img {
    border-radius: 8px;
  }

  .content-main,
  .content-sidebar {
    padding: 25px 20px;
  }

  .section-title {
    font-size: calc(var(--font-p) * 1.18) !important;
    margin-bottom: 15px;
  }
}

.footer-content p {
    font-size: var(--font-p) !important;
    line-height: 1.5;
  }
}

/* Clean section styling */
.glass-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 41, 39, 0.1);
  border-radius: 12px;
  margin: 20px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Subtle animated background elements */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-animation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(184, 41, 39, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 31, 30, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(107, 114, 128, 0.02) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Portfolio Detail Page Styles */
.portfolio-detail-body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #374151;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.portfolio-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  color: var(--primary-red);
  text-decoration: none;
  margin-bottom: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-btn:hover {
  transform: translateX(-5px);
}

.back-btn i {
  margin-right: 8px;
}

.detail-header {
  text-align: center;
  margin-bottom: 50px;
}

.detail-image {
  text-align: center;
  margin: 30px 0;
}

.detail-image img {
  max-width: 500px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.detail-image img:hover {
  transform: scale(1.05);
}

.detail-title {
  font-size: calc(var(--font-h1) * 0.8);
  font-weight: 700;
  color: #374151;
  margin-bottom: 20px;
}

.detail-tagline {
  font-size: calc(var(--font-h2) * 0.8);
  color: var(--primary-red);
  font-style: italic;
  margin-bottom: 30px;
}

.detail-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.content-main {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 41, 39, 0.1);
  border-radius: 12px;
  padding: 40px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-main p {
  margin-bottom: 16px;
}

.content-sidebar {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(184, 41, 39, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
  color: #374151;
  font-size: var(--font-h2);
  font-weight: 600;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-red);
  padding-bottom: 10px;
}

.feature-list {
  list-style: none;
  padding: 0 0 16px;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(184, 41, 39, 0.1);
  display: flex;
  align-items: center;
  color: #374151;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  color: var(--primary-red);
  margin-right: 12px;
  width: 20px;
}

/* Portfolio Detail Sidebar Styles */
.content-sidebar .project-detail-item {
  margin-bottom: 25px;
}

.content-sidebar .project-detail-label {
  color: var(--primary-red);
  margin-bottom: 8px;
  font-weight: 600;
}

.content-sidebar .project-detail-value {
  margin: 0;
  color: var(--text-muted);
}

.content-sidebar .modern-button {
  width: 100%;
  text-align: center;
}

/* Background Animation for Portfolio Details */
.bg-animation.portfolio-bg {
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(184, 41, 39, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 31, 30, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(107, 114, 128, 0.02) 0%,
      transparent 50%
    );
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.tech-item {
  background: rgba(184, 41, 39, 0.05);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  color: #374151;
}

.tech-item:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-5px);
}

.tech-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.tech-item span {
  font-size: calc(var(--font-p) * 0.7);
  font-weight: 600;
}

/* Portfolio Detail Responsive */
@media (max-width: 768px) {
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-image {
    margin: 20px 0;
    padding: 0 10px;
  }

  .detail-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: none;
  }
}
