.profile-section {
    padding: 100px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.profile-section .container {
    position: relative;
    z-index: 2;
}

.profile-section .row {
    align-items: center; /* Changed: Better vertical alignment */
}

/* Photo Styling - Optimized size and alignment */
.photo-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center; /* Changed: Center alignment */
    padding-top: 0; /* Removed: For better centering */
}

.photo-wrapper {
    position: relative;
    width: 650px; /* Optimized: Increased from 700px for better presence */
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flip Card Styling - Enhanced */
.profile-flip-card {
    perspective: 1000px;
    width: 100%;
    min-height: 650px; /* Increased: Better proportion */
    height: 100%;
    display: flex;
    align-items: center; /* Changed: Better alignment */
}

.profile-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 650px; /* Increased: Match flip card */
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Enhanced shadow */
}

.profile-flip-card.flipped .profile-flip-card-inner {
    transform: rotateY(180deg);
}

.profile-flip-card-front, 
.profile-flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    min-height: 650px; /* Increased: Match container */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: none;
}

.profile-flip-card-front {
    background: transparent;
    z-index: 2;
    padding: 25px; /* Increased: Better spacing */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed: Center content */
}

.profile-flip-card-back {
    background: rgba(10, 10, 10, 0.95);
    transform: rotateY(180deg);
    z-index: 1;
    padding: 25px; /* Increased: Consistent with front */
    box-sizing: border-box;
    border: none;
}

/* Visi Misi Styling - Enhanced for larger card */
.visi-section, .misi-section {
    margin-bottom: 28px; /* Increased: Better spacing */
}

.visi-section h3, .misi-section h3 {
    color: #ff4500;
    margin-bottom: 16px; /* Increased: Better spacing */
    font-size: 21px; /* Increased: Better readability */
    font-weight: 600;
}

.visi-section p {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    line-height: 1.6; /* Improved: Better readability */
    font-size: 15px; /* Increased: Better proportion */
    margin-bottom: 0;
    text-align: justify;
}

.misi-section ol {
    padding-left: 22px; /* Increased: Better spacing */
    margin-bottom: 0;
}

.misi-section li {
    margin-bottom: 11px; /* Increased: Better spacing */
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6; /* Improved: Better readability */
    font-size: 14px; /* Increased: Better proportion */
    text-align: justify;
}

.profile-flip-card-back .header-text .main-title {
    color: #fff;
    font-size: 26px; /* Increased: Better proportion */
    margin-bottom: 22px; /* Increased: Better spacing */
    line-height: 1.2;
    text-align: center;
}

.profile-flip-card-back .content-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-flip-card-back .text-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px; /* Increased: Better spacing */
}

.profile-flip-card-back .action-buttons {
    margin-top: 22px; /* Increased: Better spacing */
    text-align: center;
}

/* Custom scrollbar for content area */
.profile-flip-card-back .content-text::-webkit-scrollbar {
    width: 6px;
}

.profile-flip-card-back .content-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.profile-flip-card-back .content-text::-webkit-scrollbar-thumb {
    background: #ff4500;
    border-radius: 3px;
}

.profile-flip-card-back .content-text::-webkit-scrollbar-thumb:hover {
    background: #e03d00;
}

#flipToProfile i {
    margin-right: 8px;
}

#flipToVisiMisi, #flipToProfile {
    position: relative;
    z-index: 10;
    pointer-events: all;
}

.profile-flip-card-back .text-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Photo - Optimized size */
.profile-photo {
    width: 650px; /* Optimized: Perfect balance between impact and proportion */
    height: 650px;
    object-fit: cover;
    border-radius: 28px; /* Increased: More modern look */
    position: relative;
    z-index: 5;
    border: none;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35); /* Enhanced shadow */
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45); /* Enhanced hover shadow */
}

/* Text Styling - Better alignment and sizing */
.text-container {
    padding-left: 50px; /* Increased: Better spacing from photo */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed: Perfect vertical alignment */
    height: 100%; /* Ensure full height usage */
}

.intro-text {
    font-size: 34px; /* Increased: Better proportion */
    font-weight: 300;
    margin-bottom: 12px; /* Increased: Better spacing */
    color: #cccccc;
}

.highlight {
    color: #ff4500;
    font-weight: 600;
}

.main-title {
    font-size: 52px; /* Increased: Better impact */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px; /* Increased: Better spacing */
    color: white;
}

.underlined {
    position: relative;
    color: white;
}

.underlined::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ff4500;
}

.content-text {
    margin-bottom: 42px; /* Increased: Better spacing */
}

.content-text p {
    font-size: 17px; /* Increased: Better readability */
    line-height: 1.8;
    color: #999999;
    max-width: 520px; /* Increased: Better text width */
}

/* Action Buttons - Enhanced */
.action-buttons {
    display: flex;
    gap: 22px; /* Increased: Better spacing */
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff4500;
    color: white;
    padding: 16px 32px; /* Increased: Better proportion */
    border-radius: 9px; /* Increased: More modern */
    text-decoration: none;
    font-weight: 600;
    font-size: 17px; /* Increased: Better readability */
    display: inline-flex;
    align-items: center;
    gap: 11px; /* Increased: Better spacing */
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e03d00;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 16px 32px; /* Increased: Match primary button */
    border: 2px solid #ff4500;
    border-radius: 9px; /* Increased: Match primary button */
    text-decoration: none;
    font-weight: 600;
    font-size: 17px; /* Increased: Match primary button */
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-secondary:hover {
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 2px solid #ff4500;
    outline-offset: 2px;
}

.arrow {
    font-size: 19px; /* Increased: Better proportion */
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(5px);
}

/* Decorative Shapes - Adjusted for larger layout */
.decorative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: #ff4500;
    opacity: 0.1;
}

.shape-1 {
    width: 22px; /* Increased: Better proportion */
    height: 22px;
    border-radius: 4px;
    top: 20%;
    right: 18%; /* Adjusted: Better positioning */
    transform: rotate(45deg);
}

.shape-2 {
    width: 17px; /* Increased: Better proportion */
    height: 17px;
    top: 60%;
    left: 12%; /* Adjusted: Better positioning */
    border-radius: 3px;
    transform: rotate(30deg);
}

.shape-3 {
    width: 27px; /* Increased: Better proportion */
    height: 27px;
    border-radius: 5px;
    top: 15%;
    left: 22%; /* Adjusted: Better positioning */
    opacity: 0.05;
    transform: rotate(-20deg);
}

.shape-4 {
    width: 32px; /* Increased: Better proportion */
    height: 32px;
    top: 80%;
    right: 28%; /* Adjusted: Better positioning */
    border-radius: 6px;
    opacity: 0.08;
    transform: rotate(15deg);
}

/* Responsive Design - Updated for optimized base sizes */
@media (max-width: 1200px) {
    .photo-wrapper {
        width: 750px; /* Adjusted: Good intermediate size */
        height: 750px;
    }
    
    .profile-photo {
        width: 750px;
        height: 750px;
        border-radius: 25px;
    }
    
    .text-container {
        padding-left: 45px;
    }
    
    .main-title {
        font-size: 46px;
    }
    
    .intro-text {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .profile-section {
        padding: 80px 0;
    }
    
    .photo-container {
        padding-top: 0;
        align-items: center;
        margin-bottom: 30px;
    }
    
    .text-container {
        padding-left: 0;
        padding-top: 0;
        text-align: center;
    }
    
    .photo-wrapper {
        width: 380px; /* Increased: Better mobile presence */
        height: 380px;
    }
    
    .profile-photo {
        width: 350px; /* Increased: Better mobile size */
        height: 350px;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    .profile-photo:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    }
    
    .main-title {
        font-size: 38px; /* Increased: Better proportion */
    }
    
    .intro-text {
        font-size: 20px; /* Increased: Better proportion */
    }
    
    .profile-flip-card {
        min-height: 580px; /* Increased: Better proportion */
    }
    
    .profile-flip-card-front, 
    .profile-flip-card-back {
        min-height: 580px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .profile-section {
        padding: 60px 0;
    }
    
    .photo-wrapper {
        width: 310px; /* Increased: Better tablet size */
        height: 310px;
    }
    
    .profile-photo {
        width: 280px; /* Increased: Better tablet presence */
        height: 280px;
        border-radius: 18px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    .profile-photo:hover {
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
    
    .main-title {
        font-size: 30px; /* Increased: Better proportion */
    }
    
    .intro-text {
        font-size: 22px; /* Increased: Better proportion */
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .profile-flip-card {
        min-height: 520px; /* Increased: Better proportion */
    }
    
    .profile-flip-card-front, 
    .profile-flip-card-back {
        min-height: 520px;
        padding: 18px;
    }
    
    .profile-flip-card-back .header-text .main-title {
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    .visi-section h3, .misi-section h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .visi-section p {
        font-size: 14px;
    }
    
    .misi-section li {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .visi-section, .misi-section {
        margin-bottom: 18px;
    }
}

@media (max-width: 576px) {
    .main-title {
        font-size: 26px; /* Increased: Better mobile impact */
    }
    
    .intro-text {
        font-size: 20px; /* Increased: Better proportion */
    }
    
    .btn-primary, .btn-secondary {
        padding: 14px 26px; /* Increased: Better mobile touch */
        font-size: 15px; /* Increased: Better readability */
    }
    
    .profile-flip-card {
        min-height: 480px; /* Increased: Better mobile proportion */
    }
    
    .profile-flip-card-front, 
    .profile-flip-card-back {
        min-height: 480px;
        padding: 16px;
    }
    
    .profile-flip-card-back .header-text .main-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .visi-section h3, .misi-section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .visi-section p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .misi-section li {
        font-size: 12px;
        margin-bottom: 8px;
        line-height: 1.5;
    }
    
    .visi-section, .misi-section {
        margin-bottom: 16px;
    }
    
    .profile-flip-card-back .action-buttons {
        margin-top: 20px;
    }
}