/* Adagio Slab Font Face Declarations */
@font-face {
    font-family: 'Adagio Slab';
    src: url('ADAGIO_SLAB-THIN.OTF') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Adagio Slab';
    src: url('ADAGIO_SLAB-REGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Adagio Slab';
    src: url('ADAGIO_SLAB-BOLD.OTF') format('opentype');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Adagio Slab', serif;
    background-color: #f5f1eb;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

header h1 {
    font-family: 'Adagio Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.about-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    font-family: 'Adagio Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.description {
    flex: 6;
}

.description p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

.description ul.project-info {
    list-style: none;
    padding: 0;
}

.description ul.project-info li {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
}

.description h3 {
    font-family: 'Adagio Slab', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
    color: #34495e;
}

.begin-section {
    flex: 3;
    text-align: center;
    padding: 10px;
}

.heart-icon {
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: inline-block;
    font-weight: bold;
    color: #e74c3c;
}

.begin-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-family: 'Adagio Slab', serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
}

.begin-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.begin-btn:active {
    transform: translateY(0);
}

.begin-btn::after {
    content: "🌐";
    margin-left: 8px;
    font-size: 0.9em;
}

.credentials-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.credentials-section h2 {
    font-family: 'Adagio Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.credentials {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.field-group {
    flex: 1;
    min-width: 250px;
}

.field-group label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Adagio Slab', serif;
    font-weight: 700;
    color: #34495e;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Adagio Slab', serif;
    font-size: 1rem;
    background-color: #f8f9fa;
}

.copy-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Adagio Slab', serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #229954;
}

.copy-btn:active {
    background-color: #1e8449;
}

.iframe-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iframe-section h2 {
    font-family: 'Adagio Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.iframe-container {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.iframe-container iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.iframe-fallback {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.iframe-fallback p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.simulation-link {
    display: inline-block;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-family: 'Adagio Slab', serif;
    font-size: 1.2rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.simulation-link:hover {
    background-color: #2980b9;
    text-decoration: none;
}

.iframe-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #666;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.iframe-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.iframe-controls input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.iframe-controls button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.iframe-controls button:hover {
    background-color: #2980b9;
}

/* Success feedback for copy actions */
.copy-success {
    background-color: #27ae60 !important;
}

.copy-success::after {
    content: " ✓";
}

/* Project images styling */
.project-images {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.image-container {
    flex: 1;
    min-width: 250px;
    /* max-width: 400px; */
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    transition: opacity 0.3s ease;
}

.project-image:hover {
    /* opacity: 0.9; */
}

/* Language button in header specific styling */
header .begin-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Adagio Slab', serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

header .begin-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

header .begin-btn:active {
    transform: translateY(0);
}

header .begin-btn::after {
    content: "🌐";
    margin-left: 8px;
    font-size: 0.9em;
}

/* Scroll Down Arrow Styles */
.scroll-arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    background-color: transparent;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    border: 3px solid #3498db;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-arrow span {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    transition: color 0.3s ease;
}

.scroll-arrow:hover span {
    color: white;
}

/* Bounce animation for the arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive design for the arrow */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 50px;
        height: 50px;
    }
    
    .scroll-arrow span {
        font-size: 20px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    header .begin-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .credentials {
        flex-direction: column;
    }
    
    .iframe-controls {
        flex-direction: column;
    }
    
    .iframe-controls input,
    .iframe-controls button {
        width: 100%;
    }
    
    .project-images {
        flex-direction: column;
        align-items: center;
    }
    
    .image-container {
        max-width: 100%;
        min-width: unset;
    }
}

/* Additional responsive adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-section,
    .credentials-section,
    .iframe-section {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    header h1 {
        font-size: 1.5rem;
    }

    .header-content {
        gap: 15px;
    }
}

/* Language switching transitions */
.container {
    transition: opacity 0.2s ease-in-out;
}

.language-switching {
    opacity: 0.7;
}

/* Nested credentials section within iframe section */
.iframe-section .credentials-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: none;
}

.iframe-section .credentials-section h3 {
    font-family: 'Adagio Slab', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal.closing {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal.closing .modal-content {
    transform: scale(0.7);
    opacity: 0;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-family: 'Adagio Slab', serif;
    font-size: 1.2rem;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin-top: 15px;
    max-width: 80%;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    /* font-weight: bold; */
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    line-height: 1; /* Ensures no extra vertical space */
    padding-top: 2px; /* Fine-tune vertical centering */
    font-family: Arial, Helvetica, sans-serif; /* Use a font with a centered '×' */
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    /* transform: scale(1.1); */
}

/* Cursor pointer for clickable images */
.project-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-image:hover {
    transform: scale(1.01);
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .modal-caption {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .close-btn {
        top: -40px;        font-size: 28px;
        width: 40px;
        height: 40px;
    }
}

/* Outage Notice */
.outage-notice {
    background-color: #ff4444;
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #cc0000;
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

.outage-notice p {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .outage-notice {
        padding: 12px 15px;
    }
    
    .outage-notice p {
        font-size: 16px;
    }
}

/* Scroll Down Arrow Styles */
.scroll-arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    background-color: transparent;
}

.scroll-arrow {
    width: 60px;
    height: 60px;
    border: 3px solid #3498db;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.scroll-arrow span {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    transition: color 0.3s ease;
}

.scroll-arrow:hover span {
    color: white;
}

/* Bounce animation for the arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive design for the arrow */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 50px;
        height: 50px;
    }
    
    .scroll-arrow span {
        font-size: 20px;
    }
}
