Spaces:
Sleeping
Sleeping
File size: 22,163 Bytes
47058bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 |
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;600;700;800&display=swap');
:root {
/* Dark Green Theme Colors */
--primary-green: #22c55e;
--dark-green: #14532d;
--darker-green: #052e16;
--green-glow: rgba(34, 197, 94, 0.3);
--deep-green: #0d2818;
--emerald-green: #10b981;
--forest-green: #166534;
--lime-green: #65a30d;
/* Neutral Colors */
--primary-color: #ffffff;
--secondary-color: #d1fae5;
--text-light: rgba(255, 255, 255, 0.9);
--text-muted: rgba(255, 255, 255, 0.6);
/* Glassmorphism */
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-bg-strong: rgba(255, 255, 255, 0.15);
--glass-border: rgba(255, 255, 255, 0.2);
--glass-border-hover: rgba(34, 197, 94, 0.4);
--glass-shadow: rgba(0, 0, 0, 0.5);
--hover-bg: rgba(255, 255, 255, 0.2);
/* Layout */
--font-family: 'Inter', 'Poppins', sans-serif;
--sidebar-width: 280px;
--sidebar-width-collapsed: 85px;
--content-padding: 2.5rem;
--border-radius: 20px;
--border-radius-sm: 12px;
}
* {
box-sizing: border-box;
}
body, html {
height: 100%;
margin: 0;
padding: 0;
font-family: var(--font-family);
color: var(--primary-color);
overflow: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Plant Leaves Background */
.background-animation {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background-image:
linear-gradient(135deg, rgba(5, 46, 22, 0.8) 0%, rgba(13, 40, 24, 0.7) 100%),
url('../images/green-leaves-3840x2160-23231.jpg');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
animation: subtleMove 60s ease-in-out infinite;
}
.background-animation::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(34, 197, 94, 0.02) 2px, rgba(34, 197, 94, 0.02) 4px),
repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(16, 185, 129, 0.02) 2px, rgba(16, 185, 129, 0.02) 4px);
pointer-events: none;
opacity: 0.5;
}
.background-animation::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
radial-gradient(ellipse at 50% 0%, rgba(5, 46, 22, 0.3) 0%, transparent 70%);
pointer-events: none;
}
/* If user adds plant-leaves-bg.jpg, uncomment this and comment above */
/*
.background-animation {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
background-image:
linear-gradient(135deg, rgba(5, 46, 22, 0.85) 0%, rgba(20, 83, 45, 0.75) 50%, rgba(13, 40, 24, 0.85) 100%),
url('../images/plant-leaves-bg.jpg');
background-color: rgba(5, 46, 22, 0.95);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
filter: brightness(0.35) saturate(1.3) contrast(1.1);
animation: subtleMove 60s ease-in-out infinite;
}
*/
@keyframes subtleMove {
0%, 100% { background-position: center center, 0 0; }
50% { background-position: center 2%, 20px 20px; }
}
/* Main Container */
.main-container {
display: flex;
height: 100vh;
width: 100vw;
position: relative;
z-index: 1;
}
#content {
width: calc(100% - var(--sidebar-width));
padding: var(--content-padding);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
overflow-y: auto;
overflow-x: hidden;
height: 100vh;
position: relative;
}
#content.full-width {
width: calc(100% - var(--sidebar-width-collapsed));
}
/* Enhanced Glassmorphism */
.glass-card,
.sidebar-nav,
.upload-area-glass,
.chat-box-glass,
.chat-input-glass {
background: var(--glass-bg);
backdrop-filter: blur(25px) saturate(180%);
-webkit-backdrop-filter: blur(25px) saturate(180%);
border: 1.5px solid var(--glass-border);
border-radius: var(--border-radius);
box-shadow:
0 8px 32px var(--glass-shadow),
0 2px 8px rgba(0, 0, 0, 0.3),
inset 0 1px 1px rgba(255, 255, 255, 0.1);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover,
.upload-area-glass:hover {
border-color: var(--glass-border-hover);
box-shadow:
0 12px 48px var(--glass-shadow),
0 4px 16px rgba(34, 197, 94, 0.2),
inset 0 1px 1px rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
}
.card-header-glass {
background: rgba(255, 255, 255, 0.05);
border-bottom: 1.5px solid var(--glass-border);
padding: 1.25rem 2rem;
border-top-left-radius: var(--border-radius);
border-top-right-radius: var(--border-radius);
font-weight: 600;
color: var(--primary-color);
font-size: 1.1rem;
letter-spacing: 0.5px;
}
.card-body-glass {
padding: 2rem;
}
/* Sidebar - Enhanced */
.sidebar-nav {
min-width: var(--sidebar-width);
max-width: var(--sidebar-width);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
overflow-y: auto;
overflow-x: hidden;
max-height: 100vh;
background: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(25px) saturate(180%);
-webkit-backdrop-filter: blur(25px) saturate(180%);
border-right: 2px solid var(--glass-border);
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}
.sidebar-nav .sidebar-header {
padding: 2rem 1.5rem;
text-align: center;
border-bottom: 2px solid var(--glass-border);
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, transparent 100%);
}
.sidebar-nav .sidebar-header h3 {
color: var(--primary-green);
font-weight: 700;
font-size: 1.75rem;
margin: 0;
text-shadow: 0 0 20px var(--green-glow);
letter-spacing: 1px;
}
.sidebar-nav .sidebar-header h3 i {
color: var(--emerald-green);
margin-right: 0.5rem;
}
.sidebar-nav ul.components {
padding: 1.5rem 0;
flex-grow: 1;
margin: 0;
list-style: none;
}
.sidebar-nav ul li {
margin: 0.5rem 0;
padding: 0 0.5rem;
}
.sidebar-nav ul li a {
padding: 1rem 1.25rem;
font-size: 1rem;
font-weight: 500;
display: flex;
align-items: center;
color: var(--text-light);
text-decoration: none;
border-left: 3px solid transparent;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
/* margin: 0 1rem; -- removed */
border-radius: var(--border-radius-sm);
position: relative;
overflow: hidden;
min-width: 0;
white-space: nowrap;
}
.sidebar-nav ul li a::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
transition: left 0.5s;
}
.sidebar-nav ul li a:hover::before {
left: 100%;
}
.sidebar-nav ul li a span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
flex-grow: 1; /* Allow the span to take available space */
}
.sidebar-nav ul li a i {
margin-right: 1rem;
width: 24px;
text-align: center;
font-size: 1.2rem;
color: var(--emerald-green);
transition: all 0.3s;
}
.sidebar-nav ul li a:hover {
color: var(--primary-color);
background: var(--hover-bg);
border-left-color: var(--primary-green);
transform: translateX(5px);
box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}
.sidebar-nav ul li.active > a {
color: var(--primary-color);
background: linear-gradient(90deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
border-left-color: var(--primary-green);
box-shadow:
inset 0 0 20px rgba(34, 197, 94, 0.15),
0 4px 12px rgba(34, 197, 94, 0.25);
font-weight: 600;
}
.sidebar-nav ul li.active > a i {
color: var(--primary-green);
text-shadow: 0 0 10px var(--green-glow);
}
.sidebar-toggler {
padding: 1.5rem;
text-align: center;
border-top: 2px solid var(--glass-border);
background: rgba(5, 46, 22, 0.3);
}
.btn-glass {
background: var(--glass-bg);
border: 1.5px solid var(--glass-border);
color: var(--text-light);
border-radius: var(--border-radius-sm);
padding: 0.75rem 1.5rem;
font-weight: 500;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}
.btn-glass:hover {
background: var(--hover-bg);
color: var(--primary-color);
border-color: var(--primary-green);
box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
transform: translateY(-2px);
}
/* Collapsed Sidebar */
#sidebar.collapsed {
min-width: var(--sidebar-width-collapsed);
max-width: var(--sidebar-width-collapsed);
}
#sidebar.collapsed .sidebar-header h3,
#sidebar.collapsed ul li a span {
display: none;
}
#sidebar.collapsed ul li a i {
margin-right: 0;
font-size: 1.5rem;
}
#sidebar.collapsed ul li a {
justify-content: center;
padding: 1rem;
margin: 0.5rem;
}
#sidebar.collapsed .sidebar-toggler i {
transform: rotate(180deg);
}
/* Content Tabs */
.content-tab {
display: none !important;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.content-tab.active-tab {
display: block !important;
opacity: 1;
transform: translateY(0);
}
.tab-title {
color: var(--primary-color);
font-weight: 700;
font-size: 2.25rem;
margin-bottom: 2rem;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
letter-spacing: -0.5px;
}
/* Upload Area */
.upload-area-glass {
height: 400px;
border: 3px dashed var(--glass-border);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(5, 46, 22, 0.1) 100%);
}
.upload-area-glass.drag-over {
background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
border-color: #8A9A5B;
box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
transform: scale(1.02);
}
.upload-area-glass .upload-icon {
display: flex;
justify-content: center;
align-items: center;
}
.upload-area-glass .upload-icon i {
font-size: 5rem;
color: #8A9A5B;
/* margin-bottom: 1.5rem; -- removed */
filter: drop-shadow(0 0 10px rgba(138, 154, 91, 0.4));
}
.upload-area-glass p {
color: var(--text-light);
font-size: 1.1rem;
margin: 0.5rem 0;
}
.upload-area-glass form {
height: 100%;
width: 100%;
display: flex; /* Make the form a flex container too */
flex-direction: column;
justify-content: center;
align-items: center;
}
.upload-area-glass .text-muted {
color: var(--text-muted);
}
/* Image Preview */
#image-preview {
max-height: 500px;
width: 100%;
object-fit: cover;
border-radius: var(--border-radius-sm);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
/* Diagnosis Results */
#disease-name {
font-weight: 700;
color: var(--primary-green);
font-size: 1.75rem;
margin-bottom: 1rem;
text-shadow: 0 0 15px var(--green-glow);
}
#health-status {
color: var(--text-light);
font-size: 1.1rem;
line-height: 1.6;
}
#detailed-symptoms ul,
#prevention-methods ul {
padding-left: 1.5rem;
color: var(--text-light);
}
#detailed-symptoms li,
#prevention-methods li {
margin-bottom: 0.75rem;
line-height: 1.6;
}
/* Chat Tab */
.chat-container {
display: flex;
flex-direction: column;
padding-left: 1.5rem;
height: 100%;
width: 100%; /* Ensure it takes full width */
}
.chat-box-glass {
flex-grow: 1;
padding: 2rem;
overflow-y: auto;
margin-bottom: 1.5rem;
min-height: 400px;
max-height: calc(100vh - 250px);
}
.chat-message {
padding: 1rem 1.5rem;
border-radius: var(--border-radius-sm);
margin-bottom: 1rem;
max-width: 75%;
line-height: 1.7;
font-size: 0.95rem;
animation: fadeIn 0.3s ease-out; /* Changed to fadeIn */
background: var(--glass-bg); /* Neutral glassmorphism background */
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border: 1px solid var(--glass-border); /* Neutral glassmorphism border */
box-shadow: 0 4px 12px var(--glass-shadow); /* Consistent shadow */
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(5px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.chat-message.user {
color: white;
margin-left: auto;
margin-right: 0; /* Ensure right alignment */
border-bottom-right-radius: 4px;
border-top-right-radius: var(--border-radius-sm); /* Adjust for consistent corner */
background: var(--glass-bg-strong); /* Slightly stronger glass for user */
border-color: rgba(34, 197, 94, 0.4); /* Greenish border for user */
box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4); /* Greenish shadow for user */
}
.chat-message.bot {
color: var(--text-light);
margin-right: auto;
margin-left: 0; /* Ensure left alignment */
border-bottom-left-radius: 4px;
border-top-left-radius: var(--border-radius-sm); /* Adjust for consistent corner */
background: var(--glass-bg); /* Revert to base glass-bg */
border-color: var(--glass-border); /* Revert to base glass-border */
white-space: pre-wrap; /* Preserve formatting */
animation: none; /* Remove bot-pulse animation */
}
/* Remove bot-pulse keyframes as it's no longer used */
/* Thinking Dots Animation */
@keyframes fadeInOut {
0%, 100% { opacity: 0.3; }
50% { opacity: 1; }
}
.thinking-dots .dot {
opacity: 0.3;
animation: fadeInOut 1.4s infinite;
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: var(--text-light);
margin: 0 1px;
}
.thinking-dots .dot:nth-child(1) { animation-delay: 0s; }
.thinking-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots .dot:nth-child(3) { animation-delay: 0.4s; }
.chat-message.bot {
color: var(--text-light);
margin-right: auto;
margin-left: 0; /* Ensure left alignment */
border-bottom-left-radius: 4px;
border-top-left-radius: var(--border-radius-sm); /* Adjust for consistent corner */
background: var(--glass-bg); /* Revert to base glass-bg */
border-color: var(--glass-border); /* Revert to base glass-border */
white-space: pre-wrap; /* Preserve formatting */
animation: none; /* Remove bot-pulse animation */
/* New styles for bot message bubbles */
padding: 12px;
border-radius: 15px;
}
.bot-message {
white-space: pre-wrap;
/* Existing bot-message styles */
}
/* Markdown styling within bot messages */
.bot-message h1, .bot-message h2, .bot-message h3, .bot-message h4, .bot-message h5, .bot-message h6 {
color: var(--primary-green);
margin-top: 1.5em;
margin-bottom: 0.5em;
font-weight: 700;
line-height: 1.2;
}
.bot-message h3 {
font-size: 1.1em;
margin-top: 10px;
}
.bot-message ul {
padding-left: 20px;
margin-bottom: 1em;
}
.bot-message ol {
padding-left: 20px;
margin-bottom: 1em;
}
.bot-message li {
margin-bottom: 0.5em;
line-height: 1.6;
}
.bot-message p {
margin-bottom: 8px;
line-height: 1.6;
}
.bot-message a {
color: var(--emerald-green);
text-decoration: underline;
}
.bot-message strong {
font-weight: 700;
color: var(--primary-color);
}
.bot-message em {
font-style: italic;
}
.bot-message code {
background-color: rgba(34, 197, 94, 0.1);
color: var(--emerald-green);
padding: 0.2em 0.4em;
border-radius: 4px;
font-family: 'Fira Code', 'Roboto Mono', monospace;
font-size: 0.85em;
}
.bot-message pre {
background-color: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 1em;
overflow-x: auto;
font-family: 'Fira Code', 'Roboto Mono', monospace;
font-size: 0.85em;
margin-bottom: 1em;
}
.bot-message blockquote {
border-left: 4px solid var(--primary-green);
padding-left: 1em;
margin-left: 0;
color: var(--text-muted);
font-style: italic;
}
.bot-message hr {
border: none;
border-top: 1px solid rgba(255, 255, 255, 0.1);
margin: 1.5em 0;
}
/* --- Model Showcase --- */
.showcase-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.5rem;
padding: 1rem 0;
}
.showcase-btn {
background: var(--glass-bg);
border: 1.5px solid var(--glass-border);
border-radius: var(--border-radius-sm);
padding: 1.5rem;
color: var(--text-light);
font-weight: 600;
text-align: center;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
will-change: transform, box-shadow;
}
.showcase-btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: var(--green-glow);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.4s, height 0.4s;
opacity: 0;
z-index: 0;
}
.showcase-btn:hover::before,
.showcase-btn:focus::before {
width: 200%;
height: 200%;
opacity: 1;
}
.showcase-btn:hover {
transform: translateY(-5px) scale(1.03);
border-color: var(--primary-green);
color: var(--primary-color);
box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
}
.showcase-btn-title {
position: relative;
z-index: 1;
font-size: 1rem;
pointer-events: none; /* So it doesn't interfere with the button click */
}
/* Showcase Overlay & Card */
.showcase-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1050;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.3);
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
opacity: 0;
transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), -webkit-backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-overlay.visible {
opacity: 1;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
}
.showcase-card {
position: fixed;
background: rgba(20, 28, 46, 0.95); /* Slightly darker for better text read */
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
border: 1.5px solid var(--glass-border);
border-radius: var(--border-radius);
box-shadow: 0 16px 70px rgba(0, 0, 0, 0.5);
z-index: 1051;
overflow: hidden;
opacity: 0;
will-change: transform, width, height, top, left, opacity;
transition: all 0.6s cubic-bezier(0.45, 0, 0.1, 1);
/* --- KEY CHANGES FOR LANDSCAPE WIDTH --- */
width: 850px; /* 300px was too small. 850px is wide/landscape. */
max-width: 95vw; /* Ensures it fits on smaller screens if needed */
min-height: 350px;
/* Centering logic (optional, ensures it stays center) */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
}
.showcase-card.expanding {
opacity: 1;
}
.showcase-card.expanded {
width: 850px !important; /* Explicitly set fixed width */
height: 700px; /* Explicitly set fixed height */
max-width: 90vw; /* Responsive constraint */
max-height: 90vh; /* Responsive constraint */
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
margin: 0 !important; /* Remove external offsets */
opacity: 1;
}
.showcase-content {
padding: 3rem; /* Increased padding */
height: 100%;
overflow-y: auto; /* Added for scrollability */
opacity: 0;
transform: translateY(20px);
transition: opacity 0.4s 0.3s ease-out, transform 0.4s 0.3s ease-out;
}
/* Custom scrollbar for showcase-content */
.showcase-content::-webkit-scrollbar {
width: 8px;
}
.showcase-content::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}
.showcase-content::-webkit-scrollbar-thumb {
background-color: var(--primary-green);
border-radius: 10px;
border: 2px solid rgba(255, 255, 255, 0.1);
}
.showcase-content::-webkit-scrollbar-thumb:hover {
background-color: var(--emerald-green);
}
.showcase-card.expanded .showcase-content {
opacity: 1;
transform: translateY(0);
}
.btn-close-glass {
position: absolute;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 50%;
color: white;
font-size: 24px;
line-height: 38px;
text-align: center;
cursor: pointer;
transition: all 0.3s;
z-index: 10;
opacity: 0;
transform: scale(0.5);
transition: opacity 0.3s 0.5s, transform 0.3s 0.5s;
}
.showcase-card.expanded .btn-close-glass {
opacity: 1;
transform: scale(1);
}
.btn-close-glass:hover {
background: rgba(255, 0, 0, 0.3);
transform: scale(1.1) rotate(90deg);
}
/* Showcase Content Typography */
.showcase-content h2 {
color: var(--primary-green);
font-weight: 700;
margin-bottom: 0.5rem;
text-shadow: 0 0 10px var(--green-glow);
font-size: 1.8rem; /* Reset font size for title */
}
.showcase-content p,
.showcase-content ul li {
white-space: normal; /* Ensure text wraps naturally */
}
|