@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    position: relative;
}

header {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 1rem 2rem;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    z-index: 1010;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.remainingbody {
    margin-top: 70px;
    padding: 0;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.menu-button:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-button-container {
    position: relative;
    display: flex;
    gap: 0.5rem; 
    align-items: center;
}

.home-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    gap: 0.5rem;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.home-button .arrow {
    font-size: 0.8em;
    transition: var(--transition-fast);
}

.home-button:hover .arrow {
    transform: rotate(180deg);
}

.guide-button-container {
    display: none; 
    position: relative;
    min-width: 100px; 
    text-align: center;
}

.guide-button {
    display: none;
    border: none;
    background: none;
    padding: 0;
    margin-right: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.guide-button:hover {
    transform: scale(1.2);
}



.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    min-width: 200px;
    overflow: hidden;
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-email {
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.875rem;
    background: var(--bg-secondary);
}

.dropdown a {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-weight: 500;
}

.dropdown a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 280px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding-top: 90px;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

nav ul {
    list-style-type: none;
    padding: 1rem 0;
    margin: 0;
}


nav ul li {
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    text-align: left;
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-normal);
    font-weight: 500;
    border-left: 3px solid transparent;
    margin: 0.25rem 1rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

nav ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

nav ul li:hover::before {
    opacity: 0.1;
}

nav ul li:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
    background: var(--bg-secondary);
}

nav ul li.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05));
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

nav .close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav .close-menu:hover {
    background: var(--error-color);
    color: white;
    transform: rotate(90deg);
}

nav.closed {
    transform: translateX(-280px);
}

nav.closed ul li {
    opacity: 0;
    transform: translateX(-20px);
}

nav:not(.closed) ul li {
    animation: fadeInSlideRight 0.4s ease-out forwards;
}

nav:not(.closed) ul li:nth-child(1) { animation-delay: 0.1s; }
nav:not(.closed) ul li:nth-child(2) { animation-delay: 0.2s; }
nav:not(.closed) ul li:nth-child(3) { animation-delay: 0.3s; }
nav:not(.closed) ul li:nth-child(4) { animation-delay: 0.4s; }
nav:not(.closed) ul li:nth-child(5) { animation-delay: 0.5s; }
nav:not(.closed) ul li:nth-child(6) { animation-delay: 0.6s; }
nav:not(.closed) ul li:nth-child(7) { animation-delay: 0.7s; }
nav:not(.closed) ul li:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInSlideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

nav ul li::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition-fast);
}

nav ul li.active::after {
    opacity: 1;
}

@media (max-width: 768px) {
    nav {
        width: 100%;
        transform: translateX(-100%);
    }
    
    nav.closed {
        transform: translateX(-100%);
    }
    
    nav:not(.closed) {
        transform: translateX(0);
    }
}

.content {
    display: none;
    padding: 1rem;
    margin: 0;
    min-height: calc(100vh - 140px);
}

.content.active {
    display: block;
}

#banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    justify-content: 'center';
    box-shadow: var(--shadow-lg);
}

.info-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card {
    flex: 1;
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.info-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-card:hover img {
    transform: scale(1.05);
}

.info-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.prev, .next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    padding: 0;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition-normal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.dot {
    height: 12px;
    width: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.dot.active,
.dot:hover {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.dynamic-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-transform: none;
    letter-spacing: normal;
    min-width: 120px;
    min-height: 40px;
    flex: 0 0 auto;
}

.dynamic-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.dynamic-button:active {
    transform: translateY(-1px);
}

#feedback-report-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    padding: 20px;
    max-width: 90%;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    #feedback-report-buttons {
        max-width: 800px;
    }
}

@media (max-width: 800px) {
    #feedback-report-buttons {
        max-width: 600px;
    }
}

@media (max-width: 600px) {
    #feedback-report-buttons {
        max-width: 500px;
        justify-content: space-around;
    }
}

@media (max-width: 400px) {
    #feedback-report-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 300px;
    }
    
    .dynamic-button {
        width: 200px;
    }
}

.spinner {
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 1005;
    width: 400px;
    max-width: 90%;
    animation: alertSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.alert-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(var(--shadow-md));
}

.alert-message {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.alert-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.alert-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.alert-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-tertiary);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.alert-close-button:hover {
    background: var(--error-color);
    color: white;
}

footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.feedback-button,
.report-button {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    flex: 1;
    max-width: 150px;
}

.report-button {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
}

.feedback-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #059669, #047857);
}

.report-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

#status-bar {
    display: none;
    padding: 1rem;
    text-align: center;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1010;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#status-bar.offline {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
}

#status-bar.online {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.detail-item:hover::before {
    transform: scaleX(1);
}

.detail-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--shadow-sm));
}

@media (max-width: 768px) {
    .menu-button {
        display: block;
    }
    
    header {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    #banner {
        height: 300px;
    }
    
    .info-text {
        font-size: 1rem;
        padding: 1rem;
    }
    
    
    .feedback-button,
    .report-button {
        width: 100%;
        max-width: 200px;
    }
    
    .details-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .detail-item {
        padding: 1.5rem;
    }
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    z-index: 1000;
    transition: var(--transition-normal);
}

#overlay.open {
    display: block;
}

.hidden {
    display: none !important;
}

#chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    z-index: 1000;
}

#chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

#chatbot-toggle img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

#chatbot {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--border-color);
    animation: chatbotSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatbotSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    font-weight: 600;
}

#chatbot-header img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    filter: brightness(0) invert(1);
}

#close-chatbot {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

#close-chatbot:hover {
    background: rgba(255, 255, 255, 0.2);
}

#messages {
    padding: 1rem;
    height: calc(100% - 120px);
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.message-text {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.4;
}

.message-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 0.5rem;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
