/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Base Sections */
.about-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* Typography */
.main-title {
    font-size: 56px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.main-subtitle {
    font-size: 20px;
    color: #4b5563;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 48px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #467ff7, #2d5acc);
    border-radius: 2px;
}

/* History Section */
.history-section {
    margin-bottom: 100px;
}

.history-content {
    max-width: 1100px;
    margin: 0 auto;
}

.history-paragraph {
    font-size: 18px;
    line-height: 2;
    color: #4b5563;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.history-paragraph.visible {
    opacity: 1;
    transform: translateY(0);
}

.history-paragraph strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.value-card {
    text-align: center;
    padding: 32px 24px;
    background: #f8f9ff;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(70, 127, 247, 0.15);
}

.value-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #467ff7, #2d5acc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon svg {
    width: 36px;
    height: 36px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.value-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Mission & Vision Section */
.mission-vision-section {
    margin-bottom: 100px;
    background: #f8f9ff;
    padding: 80px 40px;
    border-radius: 24px;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.mv-card {
    background: #ffffff;
    padding: 48px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.mv-card:hover {
    border-color: #467ff7;
    box-shadow: 0 8px 24px rgba(70, 127, 247, 0.15);
}

.mv-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #467ff7, #2d5acc);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.mv-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.mv-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.mv-text {
    font-size: 17px;
    line-height: 1.9;
    color: #4b5563;
}

/* Installations Section */
.installations-section {
    margin-bottom: 100px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box; /* Explicit box-sizing for carousel logic */
}

.installation-content {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio optimized for Instagram embeds */
    background: #f8f9ff;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.installation-info {
    padding: 32px;
    text-align: center;
}

.installation-city {
    font-size: 24px;
    font-weight: 800;
    color: #467ff7;
    margin-bottom: 12px;
}

.installation-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4b5563;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.carousel-button {
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    width: 48px; /* Fixed size */
    height: 48px;
}

.carousel-button:hover {
    background: #467ff7;
    border-color: #467ff7;
    transform: scale(1.1);
}

.carousel-button svg {
    width: 24px;
    height: 24px;
    stroke: #467ff7;
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.carousel-button:hover svg {
    stroke: #ffffff;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #467ff7;
    width: 32px;
    border-radius: 6px;
}

/* Preoperative Section */
.preop-section {
    background: linear-gradient(135deg, #f8f9ff, #e8f0ff);
    padding: 80px 40px;
    border-radius: 24px;
    margin-bottom: 40px;
}

.preop-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.preop-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.preop-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #467ff7, #2d5acc);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preop-icon-wrapper svg {
    width: 40px;
    height: 40px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.preop-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
}

.preop-description {
    font-size: 17px;
    line-height: 1.9;
    color: #4b5563;
}

.preop-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%; /* Vertical video aspect */
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(70, 127, 247, 0.2);
    transition: all 0.3s ease;
}

.preop-video-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(70, 127, 247, 0.3);
}

.preop-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Responsive Design --- */

@media (max-width: 1024px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .preop-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .preop-video-container {
        padding-bottom: 100%;
        max-width: 500px; /* Constrain max width for better aesthetic on tablet */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 20px;
    }

    .main-title {
        font-size: 40px;
    }

    .main-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .history-paragraph {
        font-size: 17px;
        line-height: 1.8;
    }

    .values-grid {
        grid-template-columns: 1fr; /* Stack values on mobile */
        gap: 20px;
    }

    .mission-vision-section {
        padding: 60px 24px;
        border-radius: 16px;
    }
    
    .mv-card {
        padding: 32px 24px;
    }

    .mv-title {
        font-size: 24px;
    }

    .mv-text {
        font-size: 16px;
    }

    .preop-section {
        padding: 60px 24px;
        border-radius: 16px;
    }

    .preop-title {
        font-size: 28px;
    }

    .preop-description {
        font-size: 16px;
    }

    .carousel-slide {
        padding: 0 10px; /* Minimize padding on mobile */
    }

    .installation-info {
        padding: 24px;
    }

    .installation-city {
        font-size: 20px;
    }

    .installation-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .preop-title {
        font-size: 24px;
    }

    .value-card {
        padding: 24px 16px;
    }

    .history-paragraph {
        margin-bottom: 24px;
    }
}
