:root {
    --blue-50: #ade8f4;
    --blue-100: #90e0ef;
    --blue-200: #48cae4;
    --blue-300: #00b4d8;
    --blue-400: #0096c7;
    --blue-500: #0077b6;
    --blue-600: #023e8a;
    --cream: #f5f1e9;
    --cream-blue: #cdeff6;
    --pink-50: #f7c5f2;
    --brown: #5D4037;
    --brown-light: #8d6e63;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 4px 20px rgba(105, 190, 255, 0.15);
    --shadow-hover: 0 12px 40px rgba(105, 195, 255, 0.25);
}

* { margin:0; padding:0; box-sizing: border-box;}

body {
    font-family: "Sour Gummy", sans-serif;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--cream-blue) 50%, var(--blue-100) 100%);
    min-height: 100vh;
    color: var(--brown);
    overflow-x: hidden;
}

header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 20px 30px;
}

main {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px 20px;
}

footer {
    text-align: center;
    padding: 10px 20px 100px;
    position: relative;
    z-index: 10;
}
/*keyframes*/

@keyframes loading-bounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% {transform: translateY(-20px) rotate(5deg);}
}

@keyframes loading-pulse {
    0%, 100% {opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes dot-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

@keyframes float-up {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.7;}
    25% { opacity: 0.9; }
    75% { opacity: 0.5; }
    100% { transform: translateY(-120vh) rotate(360deg) scale(0.5); opacity: 0; }
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes sparkle-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2);}
}

@keyframes heart-burst {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

@keyframes shark-rawr {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    25% { transform: translateY(-8px) rotate(2deg); }
    50% { transform: translateY(0) rotate(3deg); }
    75% { transform: translateY(-4px) rotate(-2deg);}
}

@keyframes confetti {
    to { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes modal-appear {
    from { transform: scale(0.8) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1;}
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}


/*loading screen*/
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-50) 40%, var(--blue-100) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-shark-image {
    width: 160px;
    height: auto;
    animation: loading-bounce 0.6s ease-in-out infinite;
}

.loading-text {
    margin-top: 0px;
    font-size: 18px;
    color: var(--blue-500);
    animation: loading-pulse 1.2s ease-in-out infinite;
}

.loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--blue-500);
    border-radius: 50%;
    animation: dot-bounce 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }  

/*bubbles*/
.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -80px;
    background: radial-gradient(circle at 30% 40%,  rgba(182, 221, 255, 0.7), rgba(105, 185, 255, 0.3));
    border-radius: 50%;
    animation: float-up linear infinite;
    box-shadow: inset0 0 15px rgba(255, 255, 255, 0.4);
}

.bubble.small {
    width: 20px;
    height: 20px;
    animation-duration: 8s;
}

.bubble:nth-child(-n+8) {
    opacity: 0.6;
}
/*font*/
.sour-gummy-shark{
  font-family: "Sour Gummy", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

.logo {
    animation: gentle-float 4s ease-in-out infinite;
}

.logo-img {
    max-width: clamp(300px, 65vw, 400px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(13, 102, 150, 0.5));
}

.header-info {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/*split*/
.split-bar {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.split-left {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brown);
    border-right: 1px solid var(--blue-100);
}

.split-right {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--blue-400);
    border-right: 1px solid var(--blue-400);
    cursor: pointer;
}

.split-right.hover {
    background: var(--blue-50);
}

.logo-img {
    max-width: clamp(300px, 65vw, 400px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(20, 149, 219, 0.3));
}

.split-right.distance-found {
    background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-500) 100%);
    color: white;
}

.info-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: whitesmoke;
    box-shadow: 0 4px 15px #ffa5004d;
}

.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brown);
    box-shadow: var(--shadow-soft);
}

.hours-badge.open {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
}

.hours-badge.closed {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

/*section*/
.section-header {
    text-align: center;
    margin: 30px 0 20px;
}

.section-title {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    color: var(--blue-500);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title2 {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 800;
    color: var(--blue-500);
    gap: 10px;
    margin-left: 24px;
    margin-top: 16px;
}

.section-title .sparkle {
    font-size: 0.8em;
    animation: sparkle-spin 2s ease-in-out infinite;
}

/*menu grid*/
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.menu-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.menu-card:active {
    transform: scale(0.98);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5 ease;
}

.grid2-con {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
    flex-wrap: wrap;
}

#polaroid {
    height: 24vh;
    width: 38vh;
    background: white;
    border: 1px solid #cfcfcfc6;
    border-radius: 6px;
    padding: 10px 10px 40px 10px;
    margin: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover;
    object-position: center;
}

.menu-card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 20px;
    background: linear-gradient(135deg, var(--blue-400)0%, var(--blue-500)100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(20, 134, 255, 0.4);
}

.card-tap-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    padding: 30px 12px 10px;
    font-size: 11px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-card:hover {
    opacity: 1;
}

.card-content {
    padding: 16px;
}

.card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-man {
    font-size: 12px;
    color: var(--blue-400);
    margin-bottom: 8px;
    font-weight: 600;
}

.card-desc {
    font-size: 13px;
    color: var(--brown-light);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 2px dashed var(--blue-100);
}

.card-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-500);
}

/*unavailable card*/
.menu-card.unavailable {
    opacity: 0.6;
    pointer-events: none;
}

.unavailable-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.unavailable-badge {
    background: var(--blue-400);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(105, 200, 255, 0.4);
}

.hackastats {
    background: transparent;
    border-radius: 8px;
    margin-left: 24px;
    margin-top: 16px;
}

.hackatile {
    rotate: 90deg;
}
/*top-picks*/
.top-section {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    margin: 30px 0 20px;
    box-shadow: var(--shadow-soft);
}

.top-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.top-card {
    text-align: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--pink-50)25%, var(--blue-100) 100%);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}

.top-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(105, 203, 255, 0.2);
}

.top-card-emoji {
    font-size: 36px;
    margin-bottom: 6px;
    display: block;
}

.top-card-name {
    font-weight: 700;
    color: var(--brown);
    font-size: 13px;
}

.top-card-man {
    font-size: 10px;
    color: var(--blue-400);
    margin: 2px 0;
}

.top-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--blue-500);
    margin-top: 4px;
}

/*order*/
.order-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 12px;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    color: white; 
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.order-btn.github {
    background: #000000;
    border-radius: 18px;
}

.order-btn.insta {
    background: transparent;
}

.order-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.order-btn:active {
    transform: scale(0.95);
}

.order-btn .btn-logo-github {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    border-radius: 24px;
}

.order-btn .btn-logo-ig {
    height: 32px;
    width: 32px;
}

/*rawr shark*/
#shark-rawr {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 90px;
    height: auto;
    z-index: 50;
    animation: shark-rawr 3s ease-in-out infinite;
    cursor: pointer;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s;
}

#shark-rawr:hover {
    transform: scale(1.15) rotate(8deg);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.open {
    display: flex;
}

.modal-card {
    background: var(--white);
    border-radius: 28px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modal-appear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-image {
    position: relative;
    height: 250px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: var(--blue-50);
    overflow-x: auto;
}

.modal-thumb {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-thumb:hover {
    border-color: var(--blue-400);
}

.modal-body {
    padding: 20px;
}

.modal-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--brown);
    margin-bottom: 4px;
}

.modal-man {
    font-size: 13px;
    color: var(--blue-400);
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-desc {
    font-size: 14px;
    color: var(--brown-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-500);
    margin-bottom: 16px;
}

.modal-price span {
    font-size: 14px;
    color: var(--brown-light);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-order-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-weight: 700;
    font-family: inherit;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-card:hover .card-badge {
    animation: wiggle 0.3s ease-in-out;
}

.top-card:hover .top-card-emoji {
    animation: wiggle 0.4s ease-in-out infinite;
}

.modal-order-btn.github {
    background: black;
    border: none;
    border-radius: 18px;
}

.modal-order-btn.ig {
    background: black;
}

.modal-order-btn.link {
    background: var(--blue-500);
    border: none;
    border-radius: 18px;
}

.highlight-blue {
    background: linear-gradient(180deg, #68a1f7 50%, #4e8dec 50%);
    color: white;
    padding: 0 6px;
    border-radius: 4px;
}

.highlight-navy {
    background: linear-gradient(180deg, #4f7ec4 50%, #2b528b 50%);
    color: white;
    padding: 0 6px;
    border-radius: 4px;
}

.order-btn.link {
    background: var(--blue-500);
    border: none;
    border-radius: 18px;
}

.modal-order-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/*footer*/
.footer-logo {
    max-width: 120px;
    animation: gentle-float 4s ease-in-out infinite;
}

.footer-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-500);
    margin-top: 6px;
}

.base-text {
    font-size: 18px;
    font-weight: 300;
    color: var(--blue-500);
}

.footer-sub {
    font-size: 12px;
    color:var(--brown-light);
    margin-top: 2px;
}

/*toast*/
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: var(--blue-600);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 101;
    box-shadow: 0 8px 30px rgba(20, 137, 255, 0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/*confetti!*/
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 1001;
    animation: confetti linear forwards;
}

@media ( max-width: 600px ) {
    .menu-grid { grid-template-columns: 1fr; }
    .split-bar { flex-direction: column; border-radius: 16px; }
    .split-left { border-right: none; border-bottom: 1px solid var(--blue-100); text-align: center; }
    .info-row { justify-content: center; }
    #shark-rawr { width: 55px; bottom: 80px; right: 10px; }
    .loading-shark-image { width: 120px; }
}