.base-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #11172d 0%, #59168a 100%);
  font-family: Arial, sans-serif;
}

.footer {
  background-color: rgba(0, 0, 0, 0);
}

.base-main {
  flex: 1;
  padding: 20px;
}

.title-text {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #81bbeb, #be2acb, #2b042f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* For Firefox */
  color: transparent;
  text-shadow: 
    0 0 10px rgba(234, 115, 210, 0.5),
    0 0 20px rgba(193, 47, 174, 0.3),
    0 0 30px rgba(135, 4, 96, 0.2);
}

.second-text {
  font-size: 1rem;
  font-weight: 80;
  background-clip: text; /* For Firefox */
}

/* Modal - Hidden by default, shown when .is-active is added */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

/* Show modal when active */
.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal background */
.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Modal card */
.modal-card {
    position: relative;
    background: #161e27;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    z-index: 1000;
}

.modal-card-contact {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    z-index: 1000;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-close::before,
.modal-close::after {
  background-color: rgb(137, 22, 22);
}

/* Modal title */
.modal-title {
    text-align: center;
    margin-bottom: 40px;
}

.modal-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.modal-title p {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

/* Contact cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-card {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.contact-card:hover::before {
    opacity: 0.1;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.contact-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 2;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #667eea;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    color: #764ba2;
    transform: scale(1.2) rotate(5deg);
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-label {
    color: #667eea;
}

.contact-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    word-break: break-all;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.modal-footer p {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-title h2 {
        font-size: 2rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.wide-blinking-gradient-line {
  width: 100%;
  height: 6px;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  background-image: linear-gradient(to right, 
    transparent 0%, 
    #072aa6 30%, 
    #0e99ea 70%, 
    transparent 100%);
  animation: blinkGradientLine 2.8s ease-in-out infinite;
}


@keyframes blinkGradientLine {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

.wide-blinking-gradient-line-below {
  width: 100%;
  height: 6px;
  margin-bottom: 1.5rem;
  border-radius: 2px;
  background-image: linear-gradient(to right, 
    transparent 0%, 
    #70035a 30%, 
    #de10a4 70%, 
    transparent 100%);
  animation: blinkGradientLine2 3.3s ease-in-out infinite;
}


@keyframes blinkGradientLine2 {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

.gear-wrapper {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  position: relative;
  margin: 0 0.1em;
}

.gear-icon {
  width: 100%;
  height: 100%;
  animation: rotateGear 2s linear infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 25px rgb(252, 128, 192));
}

/* Animation keyframes */
@keyframes rotateGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.glow-text {
  font-size: 2rem;
  color: #ffb3ba; /* Light danger/pink color similar to has-text-danger-light */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-shadow: 
    0 0 10px rgba(255, 179, 186, 0.5),
    0 0 20px rgba(255, 179, 186, 0.3),
    0 0 30px rgba(255, 179, 186, 0.2);
}

.glow-text:hover {
  font-size: 3rem;
  color: #ff69b4; /* Hot pink color on hover */
  text-shadow: 
    0 0 20px rgba(255, 105, 180, 0.8),
    0 0 40px rgba(255, 105, 180, 0.6),
    0 0 60px rgba(255, 105, 180, 0.4),
    0 0 80px rgba(255, 105, 180, 0.2);
  transform: scale(1.1);
}

.glow-text-blog {
  font-size: 2rem;
  color: #7474e1; /* Light danger/pink color similar to has-text-danger-light */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-shadow: 
    0 0 10px rgba(105, 90, 243, 0.5),
    0 0 20px rgba(40, 36, 157, 0.3),
    0 0 30px rgba(12, 4, 115, 0.2);
}

.glow-text-blog:hover {
  font-size: 3rem;
  color: #5555f4; /* Hot pink color on hover */
  text-shadow: 
    0 0 20px rgba(60, 19, 245, 0.8),
    0 0 40px rgba(33, 16, 156, 0.6),
    0 0 60px rgba(10, 32, 233, 0.4),
    0 0 80px rgba(3, 20, 171, 0.2);
  transform: scale(1.1);
}

/* Project Cards Styling */
.project-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #08044e;
  border-radius: 12px;
  overflow: hidden;
  background: #161e27;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: #567599;
}

.project-card .card-content {
  padding: 1.5rem;
  position: relative;
}

.project-card .media {
  align-items: flex-start;
  margin-bottom: 1rem;
}

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

.project-card .title {
  line-height: 1.3;
  color: #f1f3f5;
  margin-bottom: 0 !important;
}

.project-card .subtitle {
  line-height: 1.4;
  font-size: 0.9rem;
  color: #f1f3f5;
  margin-bottom: 0 !important;
}

/* Tags Styling */
.tags-container {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tags-container .tag {
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  background-color: #f5f5f5;
  color: #4a4a4a;
  border: 1px solid #e8e8e8;
  transition: all 0.2s ease;
}

.clickable-tag {
  cursor: pointer;
  position: relative;
}

.clickable-tag:hover {
  background-color: #3273dc !important;
  color: white !important;
  border-color: #3273dc !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(50, 115, 220, 0.3);
}

.project-card:hover .tags-container .tag:not(:hover) {
  background-color: #e8f4fd;
  border-color: #3273dc;
  color: #3273dc;
}

/* Filter Animation */
.filtered-card {
  animation: highlightCard 0.5s ease-in-out;
}

@keyframes highlightCard {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(50, 115, 220, 0.3); }
  100% { transform: scale(1); }
}

/* Filter Status */
#filter-status {
  border-radius: 8px;
  position: relative;
}

#filter-status .delete {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Modal Styling */
.project-modal .modal-card {
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background-color: #161e27;
  border-radius: 50%;
}

.modal-close:hover {
  background-color: #161e27;
}

.project-modal .modal-card-body {
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #161e27;
}

.modal-title-section .modal-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f3f5;
  margin-bottom: 0.5rem;
}

.title-inside {
  font-size: 1.5rem;
  font-weight: 600;
  color: #f1f3f5;
  margin-bottom: 0.5rem;
}

.modal-image-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-image {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  float: left;
  margin: 0 15px 15px 0;
}

.project-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f3f5;
  margin-bottom: 1.5rem;
}

.blog-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #f1f3f5;
  margin-bottom: 1.5rem;
}

strong {
  color: #f1f3f5 !important;
}

.container .button.is-primary.is-fullwidth,
.project-modal .button.is-primary.is-fullwidth {
  background: linear-gradient(135deg, #3273dc, #209cee);
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.container .button.is-primary.is-fullwidth:hover,
.project-modal .button.is-primary.is-fullwidth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(50, 115, 220, 0.4);
}

/* Modal Animation */
.project-modal.is-active .modal-card {
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .project-card .card-content {
    padding: 1.25rem;
  }
  
  .project-card .media {
    margin-bottom: 0.8rem;
  }
  
  .project-image img {
    width: 48px;
    height: 48px;
  }
  
  .project-card .title {
    font-size: 1.1rem;
  }
  
  .project-card .subtitle {
    font-size: 0.85rem;
  }
  
  .project-modal .modal-card {
    width: 95vw;
    max-height: 95vh;
  }
  
  .project-modal .modal-card-body {
    padding: 1.25rem;
  }
  
  .modal-title-section .modal-card-title {
    font-size: 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  .tags-container .tag {
    font-size: 0.7rem;
  }
}

/* Custom scrollbar for modal */
.project-modal .modal-card-body::-webkit-scrollbar {
  width: 6px;
}

.project-modal .modal-card-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.project-modal .modal-card-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.project-modal .modal-card-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

textarea {
    resize: none !important;
}

#id_attachment {
    width: 100%;
    box-sizing: border-box;
}

#success-modal .modal-background,
#error-modal .modal-background {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#success-modal .modal-content,
#error-modal .modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#success-modal .box {
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: rgba(144, 238, 144, 0.8);
}

#error-modal .box {
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 200, 100, 0.8);
}

#success-modal .title,
#success-modal .subtitle,
#error-modal .title,
#error-modal .subtitle {
  color: #000;
  margin-bottom: 15px;
}

#success-modal #success-ok-btn {
  background-color: #006400;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#success-modal #success-ok-btn:hover {
  background-color: #004d00;
}

#error-modal #error-ok-btn {
  background-color: rgba(200, 100, 0, 0.9);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#error-modal #error-ok-btn:hover {
  background-color: rgba(255, 140, 0, 1);
}

.project-description img {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1em auto;
}

.is-loading {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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