/* ===== KATA SAMBUTAN MODERN STYLE ===== */
/* Enhanced visual design for Principal's Message section */

.sambutan {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
.sambutan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.sambutan .container {
    position: relative;
    z-index: 1;
}

/* Content Card with Glass Effect */
.sambutan-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.sambutan-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Photo Section - Modern Card */
.sambutan-photo {
    text-align: center;
    position: relative;
}

.photo-frame {
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 15px 35px rgba(102, 126, 234, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
    border: 6px solid white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-frame:hover img {
    transform: scale(1.1);
}

/* Info Card */
.kepala-sekolah-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.kepala-sekolah-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.kepala-sekolah-info h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.kepala-sekolah-info .jabatan {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 5px;
}

.kepala-sekolah-info .periode {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Text Section - Enhanced Typography */
.sambutan-text {
    position: relative;
    padding: 20px 0;
}

.sambutan-quote {
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 100px;
    color: rgba(102, 126, 234, 0.15);
    line-height: 1;
    z-index: 0;
}

.sambutan-quote-right {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 100px;
    color: rgba(102, 126, 234, 0.15);
    line-height: 1;
    z-index: 0;
}

.sambutan-body {
    position: relative;
    z-index: 1;
}

.sambutan-body p {
    font-size: 17px;
    line-height: 2;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: justify;
    position: relative;
    padding-left: 20px;
}

.sambutan-body p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: calc(100% - 16px);
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
    opacity: 0.3;
}

.sambutan-body .greeting {
    font-size: 19px;
    color: #667eea;
    font-weight: 600;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
    border-left: 5px solid #667eea;
    margin-bottom: 25px;
}

.sambutan-body .greeting::before {
    display: none;
}

.sambutan-body .closing {
    font-size: 18px;
    color: #764ba2;
    font-weight: 600;
    padding: 20px;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    border-radius: 15px;
    border-left: 5px solid #764ba2;
    margin-top: 25px;
    text-align: center;
}

.sambutan-body .closing::before {
    display: none;
}

.sambutan-body strong {
    color: #667eea;
    font-weight: 700;
    position: relative;
}

/* Signature Area */
.signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed rgba(102, 126, 234, 0.3);
    text-align: right;
}

/* Decorative Elements */
.sambutan-content::after {
    content: '✨';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 40px;
    opacity: 0.2;
    animation: pulse-star 2s ease-in-out infinite;
}

@keyframes pulse-star {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.4;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sambutan-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .photo-frame {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .sambutan-content {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .photo-frame {
        width: 200px;
        height: 200px;
    }
    
    .kepala-sekolah-info h3 {
        font-size: 20px;
    }
    
    .sambutan-body p {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .sambutan-quote,
    .sambutan-quote-right {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .sambutan-content {
        padding: 25px 20px;
    }
    
    .photo-frame {
        width: 180px;
        height: 180px;
    }
    
    .kepala-sekolah-info {
        padding: 20px;
    }
    
    .kepala-sekolah-info h3 {
        font-size: 18px;
    }
    
    .sambutan-body p {
        font-size: 14px;
        text-align: left;
        padding-left: 15px;
    }
    
    .sambutan-body .greeting,
    .sambutan-body .closing {
        font-size: 15px;
        padding: 15px;
    }
    
    .sambutan-quote,
    .sambutan-quote-right {
        display: none;
    }
}
