body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.bg-navy-900 {
    background-color: #1a202c;
}

.bg-navy-800 {
    background-color: #2d3748;
}

.text-teal-300 {
    color: #4fd1c5;
}

.text-teal-400 {
    color: #38b2ac;
}

.text-teal-200 {
    color: #81e6d9;
}

.btn {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-gradient-shift {
    animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    from { background-position: 0% 0%; }
    to { background-position: 200% 200%; }
}

.loader {
    border-top-color: #4fd1c5;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto; /* Allow scrolling if modal content overflows */
}

.modal.active {
    display: flex;
}

.modal-popup {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 32rem; /* Limit max width for readability */
    width: 100%;
    max-height: 90vh; /* Ensure modal fits within viewport height */
    overflow-y: auto; /* Allow scrolling within modal */
    scrollbar-width: thin;
    scrollbar-color: #4fd1c5 #e2e8f0;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    position: relative;
}

.modal-popup.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    cursor: pointer;
    font-size: 1.25rem;
}

/* Enhanced Intro Section */
#intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

#intro .flex {
    max-width: 1200px;
    width: 100%;
}

#intro img {
    transition: transform 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #4fd1c5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38b2ac;
}

/* Page Load Animation */
.s-pagewrap {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.s-pagewrap.loaded {
    opacity: 1;
    transform: translateY(0);
}
