/* Common styles for detail pages like Certificates and Gallery */
.detail-page {
    background: linear-gradient(135deg, #1a2a4a 0%, #162238 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.detail-page::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0) 70%);
    animation: float 15s infinite alternate ease-in-out;
}

.detail-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0) 70%);
    animation: float 20s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 20px);
  }
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.page-header .underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0 auto 20px;
    border-radius: 5px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.5);
}

/* Responsive styles for common elements */
@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .detail-page {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}