/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('../assets/medskin_cover.jpg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 16px;
    margin: 16px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    color: white;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.cta-button {
    background-color: rgba(222, 177, 48, 0.6);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(222, 177, 48, 0.4);
}

.cta-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.cta-button:active {
    transform: scale(0.96);
}

/* Services Styles */
.services-section {
    padding: 80px 20px; 
    width: 100%;
    margin: 0;
    background: linear-gradient(to right, #A6A6A6, #F5F5F5, #F4D56E);   
    box-sizing: border-box;
}/*  */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;    
    padding: 0;    
    box-sizing: border-box;
}

.service-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    aspect-ratio: 1/1;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-item:hover .service-img {
    transform: scale(1.05);
}

.service-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent), #deb030b9;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.service-item:hover .service-caption {
    transform: translateY(0);
}

.service-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.service-desc {
    font-size: 16px;
    opacity: 0.9;
}

/* Flip card styles */
.flip-card {
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.flip-front {
    background: #fff;
}

.flip-back {
    background: #ffdd80;
    color: #040404;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px 20px 30px;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
}

.flip-back h3 {
    font-size: 26px;
    font-weight: 800;
    margin: 100px 0 16px 0;
    text-align: center;
    width: 100%;
}

.flip-back p {
    font-size: 20px;
    line-height: 1.6;
    margin: -10px;
    padding: 0 10px;
    text-align: justify;
    width: 100%;
    box-sizing: border-box;
}

/* About Section Styles */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 60px;
    font-size: 18px;
    color: #070707;
    line-height: 1.6;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-block.reverse {
    grid-template-columns: 1fr 1fr;
}

.about-block.reverse .about-image {
    order: 2;
}

.about-block div {
    padding-left: 30px;
}

.about-block.reverse div {
    order: 1;
    padding-left: 30px;
}

.about-image {
    width: 200%;             
    max-width: 630px;         
    height: auto;               
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;          
}

.about-image:hover {
    transform: scale(1.03);
}

.about-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.about-text {
    font-size: 18px;
    line-height: 1.6;
    color: #0c0c0c;
}

.about-numbers {
    text-align: center;
    margin-top: 40px;
}

.about-numbers .about-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

.numbers-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap; 
    max-width: 1300px;
    margin: 0 auto;
}

.numbers-grid .info-card {
    flex: 1;
    min-width: 220px;
}

/* Info Card Styles */
.info-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.info-title {
    font-size: 20px;
    font-weight: 700;
    color: #DEB130;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.info-content,
.contact-item {
    font-size: 16px;
    line-height: 1.6;
    color: #0a0a0a;
    font-weight: 500;
}

/* Appointment Table Styles */
.appointment-section {
    padding: 60px 40px;
    max-width: 1350px;
    margin: 40px auto;
    background-color: rgba(166, 166, 166, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.appointment-section.visible {
    transform: translateY(0);
    opacity: 1;
}

.appointment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.appointment-table th, 
.appointment-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.appointment-table th {
    background-color: rgba(222, 177, 48, 0.3);
    font-weight: 600;
    color: var(--text);
    position: sticky;
    top: 0;
}

.appointment-table tr {
    transition: all 0.3s ease;
}

.appointment-table tr:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.appointment-table tr:hover {
    background-color: rgba(222, 177, 48, 0.15);
    transform: translateX(5px);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Booking Options */
.booking-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.booking-option {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.booking-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.booking-option h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 20px;
}

.booking-option p {
    color: #666;
    margin-bottom: 20px;
}

.option-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Access Warning */
.access-warning {
    display: none;
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 5px solid #ffeeba;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.access-warning.is-visible {
    display: flex;
}

/* Patient Navigation */
.patient-navigation {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.patient-navigation button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary);
    padding: 0 5px;
}
/* Enhanced Flip Card Styles for better mobile experience */
@media (max-width: 768px) {
    .flip-card {
        cursor: pointer;
    }
    
    .flip-back {
        padding: 0 20px 15px 20px;
    }
    
    .flip-back h3 {
        font-size: 22px;
        margin: 60px 0 12px 0;
    }
    
    .flip-back p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .learn-more-btn {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* Re-book buttons container */
.rebook-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 200px;
}

/* Ensure both buttons have same dimensions */
.rebook-buttons-container .btn-primary,
.rebook-buttons-container .btn-secondary {
    width: 100%;
    height: 45px; /* Fixed height to ensure consistency */
    min-height: 45px;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Primary button styles */
.rebook-buttons-container .btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.rebook-buttons-container .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Secondary button styles */
.rebook-buttons-container .btn-secondary {
    background: #6c757d;
    color: white;
    font-weight: 600;
}

.rebook-buttons-container .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rebook-buttons-container {
        max-width: 100%;
    }
    
    .rebook-buttons-container .btn-primary,
    .rebook-buttons-container .btn-secondary {
        height: 50px; /* Slightly taller on mobile for better touch */
        min-height: 50px;
    }
}
/* Authentication Required Modal Styles */
#authRequiredModal .modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#authRequiredModal .btn-primary {
    background: var(--primary);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#authRequiredModal .btn-primary:hover {
    background: #c79a28;
}

#authRequiredModal .btn-secondary {
    background: #6c757d;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#authRequiredModal .btn-secondary:hover {
    background: #5a6268;
}

/* Animation delays for staggered entrance */
.service-item:nth-child(1) { transition-delay: 0.1s; }
.service-item:nth-child(2) { transition-delay: 0.2s; }
.service-item:nth-child(3) { transition-delay: 0.3s; }
.service-item:nth-child(4) { transition-delay: 0.4s; }
.service-item:nth-child(5) { transition-delay: 0.5s; }
.service-item:nth-child(6) { transition-delay: 0.6s; }
