/* Index and Reset Templates Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    cursor: auto;
}

.container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/zebrafish-pattern.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 2;
}

.gradient-base {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e3a8a, #0f766e, #166534);
    opacity: 0.9;
    z-index: 1;
    width: 100%;
}

.fish-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.fish {
    position: absolute;
    opacity: 0.5;
    animation-name: swim;
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.fish-artwork {
    width: 100%;
    height: 100%;
    background-image: url('../images/zebra.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fish.flipped .fish-artwork {
    transform: scaleX(-1);
}

.bubble-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.bubble {
    position: absolute;
    background: rgba(147, 197, 253, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 50%;
    animation: bubble-rise 8s linear infinite;
    opacity: 0;
}

.glass-effect {
    position: absolute;
    left: 0;
    right: 0;
    height: 2rem;
    pointer-events: none;
    z-index: 4;
    backdrop-filter: blur(2px) saturate(120%);
    width: 100%;
    perspective: 1000px;
}

.glass-top {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8vh 2rem 2rem;
    flex-grow: 1;
}

.header,
.app-card-wrapper,
.footer {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 1.2s ease-out forwards;
}

.footer a {
    color: rgba(147, 197, 253, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: rgba(147, 197, 253, 1);
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    animation-delay: 0.4s;
}

.app-card-wrapper:nth-of-type(1) {
    animation-delay: 0.7s;
}

.app-card-wrapper:nth-of-type(2) {
    animation-delay: 1.0s;
}

.footer {
    animation-delay: 1.3s;
}

.main-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    text-shadow: 0 6px 32px rgba(0, 0, 0, 0.25), 0 1px 0 #fff2;
    text-transform: uppercase;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    white-space: nowrap;
}

.main-title::after {
    content: '';
    display: block;
    margin: 0.5rem auto 0 auto;
    width: 60%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 50%, #38bdf8 100%);
    opacity: 0.7;
}

.subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: rgba(147, 197, 253, 0.9);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(147, 197, 253, 0.7);
    font-weight: 400;
}

.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    max-width: 80rem;
    width: 100%;
    perspective: 1000px;
}

.app-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-card::after {
    content: none;
}

.app-card.card-red, .app-card.card-blue {
    --card-border-color: initial;
}

.app-card:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.2;
    transform: scale(1.0);
    transition: all 0.4s ease;
    filter: blur(20px);
}

.app-card:hover .card-glow {
    opacity: 0.4;
    transform: scale(1.2);
}

.glow-red {
    background: radial-gradient(circle at center, rgba(253, 186, 116, 0.85) 0%, rgba(249, 115, 22, 0.65) 35%, rgba(239, 68, 68, 0.55) 55%, transparent 75%),
    repeating-radial-gradient(circle at center, rgba(249, 115, 22, 0.4) 0px, transparent 2px, transparent 4px);
}

.glow-blue {
    background: radial-gradient(circle at center, rgba(186, 230, 253, 0.85) 0%, rgba(96, 165, 250, 0.65) 35%, rgba(56, 189, 248, 0.55) 55%, transparent 75%),
    repeating-radial-gradient(circle at center, rgba(96, 165, 250, 0.4) 0px, transparent 2px, transparent 4px);
}

.card-content {
    position: relative;
    padding: 2.5rem;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

.card-inner > * {
    transition: transform 0.5s ease;
}

.card-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.icon-red {
    background: rgb(61, 15, 0);
}

.icon-blue {
    background: #0b314a;
}

.icon-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
}

.icon-svg {
    width: 4rem;
    height: 4rem;
    color: white;
    position: relative;
    z-index: 1;
}

.icon-red .icon-svg {
    width: 3.5rem;
    height: 3.5rem;
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.card-red:hover .card-title {
    color: #fdba74;
}

.card-blue:hover .card-title {
    color: #bae6fd;
}

.daniotracker-title {
    font-family: "Unica One", "Raleway", sans-serif;
    font-size: 2.5rem;
    font-stretch: condensed;
    background-image: linear-gradient(to right, #f97316, #ef4444, #fdba74, #f97316);
    background-size: 200% auto;
    background-position: 80%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 2s ease-in-out;
}

.card-red:hover .daniotracker-title {
    color: transparent;
    background-position: 160% 0;
}

.zotas-title {
    font-family: "Unica One", "Raleway", sans-serif;
    font-size: 2.5rem;
    font-stretch: condensed;
    background-image: linear-gradient(to right, #53d2fa, #5bacff, #93d7f1, #51b8ef);
    background-size: 200% auto;
    background-position: 80% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 2s ease-in-out;
}

.card-blue:hover .zotas-title {
    color: transparent;
    background-position: 160% 0;
}

.card-description {
    font-size: 1.125rem;
    color: rgba(147, 197, 253, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    transform: translateZ(30px);
}

.card-button {
    position: relative;
    background: linear-gradient(45deg, #3b82f6, #06b6d4, #3b82f6);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.button-red {
    background: linear-gradient(45deg, #f97316, #ef4444, #f97316);
}

.button-blue {
    background: linear-gradient(45deg, #38bdf8, #60a5fa, #38bdf8);
}

.card-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.button-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-button:hover .button-shine {
    opacity: 1;
}

.button-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.button-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.card-button:hover .button-arrow {
    transform: translateX(4px);
}

.footer {
    margin-top: auto;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer p {
    color: rgba(147, 197, 253, 0.7);
    font-size: 1rem;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes swim {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(3deg);
    }
    50% {
        transform: translateY(-8px) translateX(-8px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) translateX(5px) rotate(1deg);
    }
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0px) scale(0.8);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-75vh) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) scale(0.4);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .app-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .card-content {
        padding: 2rem;
    }

    .main-content {
        padding: 8vh 1rem 2rem;
    }

    .header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .app-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-icon {
        width: 4rem;
        height: 4rem;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-description {
        font-size: 1rem;
    }

    .main-title {
        white-space: normal;
    }
}

.app-card:hover .card-icon {
    transform: scale(1.2) rotate(6deg);
}

.app-card, .card-button, button {
    cursor: pointer;
}

.app-card-wrapper {
    position: relative;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.main-content-reset {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8vh 2rem 2rem;
    flex-grow: 1;
    justify-content: center;
    max-height: 100vh;
}

.reset-container {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
    height: auto;
    min-height: 19rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: auto;
    justify-self: center;
}

.reset-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reset-form label {
    display: flex;
    gap: 8px;
    color: rgba(147, 197, 253, 0.8);
    font-weight: 500;
    font-size: 1.25rem;
    font-family: "Lato", "Calibri", sans-serif;
}


.reset-button {
    position: relative;
    background: linear-gradient(135deg, #2e5dd6, #18bcaf, #2abf62);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    margin-top: 1rem;
    border-radius: 1rem;
    font-family: "Lato", "Calibri", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reset-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.form-input {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.card-content p {
    color: rgba(147, 197, 253, 0.8);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-family: "Lato", "Calibri", sans-serif;
}

.flash-block {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    margin-top: .55rem;
    height: 1rem;
}

.flash-block p {
    color: salmon;
    font-size: 1.1rem;
}

.blank {
    color: transparent;
}