@font-face {
    font-family: 'Pavanam';
    src: url('fonts/Pavanam-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Paytone One", sans-serif;
    background-color: #f5f5f5;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-overflow-scrolling: touch;
}

body.homepage-active {
    overflow-y: auto;
    overflow-x: hidden;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

.startup-screen {
    background-color: #ffffff;
}

.pet-logo {
    text-align: center;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.welcome-screen {
    background-color: #ffffff;
}

.welcome-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 90%;
}

.pet-image {
    width: clamp(180px, 40vw, 180px);
    height: clamp(180px, 40vw, 180px);
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.app-name {
    font-size: clamp(32px, 8vw, 48px); 
    font-weight: bold;
    color: #333;
    margin-top: -20px;
    margin-bottom: 10px;
}

.tagline {
    font-size: clamp(16px, 4vw, 18px);
    color: #666;
    margin-bottom: 40px;
    margin-top: -12px;
    line-height: 1.4;
    font-family: 'Pavanam', sans-serif; 
}

.start-button {
    background-color: #FAB051;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 16px 32px;
    font-size: clamp(18px, 4vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    margin-top: 200px;
    min-height: 44px;
    touch-action: manipulation;
    font-family: paytone one, sans-serif;
}

.start-button:active {
    transform: scale(0.96);
    background-color: #D4A853;
}

.name-pet-screen {
    background-color: #ffffff;
}

.name-pet-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: flex-start; 
    gap: 20px; 
}

.question-section {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.question-text {
    font-size: clamp(20px, 5vw, 24px);
    color: #333;
    line-height: 1.3;
    font-weight: 400;
}

.highlight {
    font-weight: bold;
    color: #333;
}

.name-input {
    width: 100%;
    max-width: 300px;
    padding: 16px 20px;
    font-size: clamp(16px, 4vw, 18px);
    border: none;
    border-radius: 15px;
    background-color: #f0f0f0;
    text-align: center;
    font-weight: 500;
    color: #333;
    outline: none;
    transition: all 0.3s ease;

}

.name-input:focus {
    background-color: #e8e8e8;
    transform: scale(1.02);

}

.name-pet-screen .name-input::placeholder,
#petNameInput::placeholder {
    color: #999 !important;
    font-weight: 400 !important;

}

.button-section {
    flex: 0 0 auto;
}

.next-button {
    background-color: #E8B86D;
    color: white;
    padding: 16px 32px;
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    border: none;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.next-button:active {
    transform: scale(0.96);
    background-color: #D4A853;

}

.next-button:disabled {
    background-color: #E8B86D;
    cursor: not-allowed;
    opacity: 0.5;

}

.name-pet-screen .pet-image {
    width: clamp(180px, 40vw, 180px);
    height: clamp(180px, 40vw, 180px);
}

.pet-and-question {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
}

.bottom-controls {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ask-name-screen {
    background-color: #ffffff;
}

.ask-name-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: flex-start;
    gap: 20px;
}

.speech-bubble {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    margin-bottom: -160px;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 35px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #f0f0f0;
}

.tommy-speech {
    font-size: clamp(16px, 4vw, 18px);
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-family: 'Pavanam', sans-serif;
}

.ask-name-content .pet-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ask-name-content .bottom-controls {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ask-name-content .pet-image {
    width: clamp(180px, 40vw, 180px);
    height: clamp(180px, 40vw, 180px);
}

/* Intro Explanation Screen */
.intro-screen {
    background-color: #ffffff;
}

.intro-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: space-between;
}

.intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.intro-title {
    font-size: clamp(24px, 6vw, 32px);
    color: #333;
    line-height: 1.2;
    font-weight: bold;
    margin: 0;
}

.intro-description {
    font-size: clamp(16px, 4vw, 18px);
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-family: 'Pavanam', sans-serif;
}

.intro-content .pet-container {
    margin: 20px 0;
}

.intro-content .pet-image {
    width: clamp(120px, 30vw, 160px);
    height: clamp(120px, 30vw, 160px);
    animation: gentle-bounce 2s ease-in-out infinite;
}

.intro-content .button-section {
    flex: 0 0 auto;
}

/* Meet User Screen */
.meet-user-screen {
    background-color: #ffffff;
}

.meet-user-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: space-between;
}

.meet-user-content .speech-bubble {
    flex: 0 0 auto;
}

.meet-user-content .pet-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meet-user-content .button-section {
    flex: 0 0 auto;
}

/* First Goal Screen */
.first-goal-screen {
    background-color: #ffffff;
}

.first-goal-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 400px;
    width: 90%;
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: space-between;
}

.first-goal-content .speech-bubble {
    flex: 0 0 auto;
    margin-bottom: 0;
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 20px;
    position: relative;
}

.first-goal-content .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #f0f0f0;
}

.first-goal-content .pet-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.first-goal-content .pet-image {
    width: clamp(160px, 35vw, 180px);
    height: clamp(160px, 35vw, 180px);
    animation: gentle-bounce 2s ease-in-out infinite;
}

.tip-section {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.tip-text {
    font-size: clamp(14px, 3.5vw, 16px);
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-family: 'Pavanam', sans-serif;
    padding: 0 10px;
}

.first-goal-content .button-section {
    flex: 0 0 auto;
}

.homepage-screen {
    background: #F7835A;
    position: static;
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    padding: 0;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));

}

.homepage-content {
    padding: 0;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
}

.pet-display {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 60vh;
    max-height: none;
    margin: 0;
    padding: 0; 
}

.pet-background {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.pet-character {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.pet-sprite {
    width: clamp(250px, 30vw, 160px);
    height: clamp(250px, 30vw, 160px);
    object-fit: contain;
    transition: all 0.3s ease;
    animation: gentle-breathing 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));

}

.pet-sprite.happy {
    animation: happy-bounce 1s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));

}

.pet-sprite.sad {
    animation: sad-droop 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));

}

/* Goals Progress Section */
.goals-section {
    flex: 0 0 auto;
    background-color: #EC6E4B;
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goals-header h3 {
    font-size: clamp(16px, 4vw, 20px);
    color: #ffffff;
    margin: 0 0 15px 0;
    text-align: center;
    font-weight: 600;
}

.progress-container {
    position: relative;
}

.progress-bar {
    background-color: #EC6E4B;
    border-radius: 25px;
    height: 50px;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    height: 100%;
    width: 0%;
    border-radius: 22px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: bold;
    color: #333;
    z-index: 2;
}

/* Goals List */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.goal-item {
    background-color: #fff;
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.goal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.goal-item.completed {
    background-color: #f8f8f8;
    opacity: 0.8;
}

.delete-goal-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.6;
    background: transparent;
}

.delete-goal-btn:hover {
    opacity: 1;
    background: rgba(255, 0, 0, 0.1);
    transform: scale(1.1);
}

.delete-goal-btn:active {
    transform: scale(0.9);
    background: rgba(255, 0, 0, 0.2);
}

.goal-text {
    font-size: clamp(14px, 3.5vw, 16px);
    color: #333;
    font-family: 'Pavanam', sans-serif;
    font-weight: 500;
    flex: 1;
    margin: 0;
    margin-right: 15px; 
}

.goal-item.completed .goal-text {
    text-decoration: line-through;
    color: #666;
}

.goal-checkbox {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.goal-checkbox.completed {
    background-color: #4CAF50;
}

.goal-checkbox:active {
    transform: scale(0.9);
}

.checkmark {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.goals-list:empty::after {
    content: "";
    display: none;
}

/* Action Section */
.action-section {
    flex: 0 0 auto;
    margin: 0 20px 60px 20px;
    margin-bottom: calc(20px + env(safe-area-inset-bottom));

}

.add-goal-button {
    background: #FAB051;
    color: black;
    border: none;
    border-radius: 25px;
    padding: 18px 32px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(250, 176, 81, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: paytone one, sans-serif;

}

.add-goal-button:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(250, 176, 81, 0.6);
}

.add-goal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 176, 81, 0.5);
}

/* Add Goal Screen */
.add-goal-screen {
    background: #F7835A;
    position: static; 
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    padding: 0;
}

.add-goal-content {
    padding: 0;
    max-width: 100%; 
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    gap: 0;
    margin: 0; 
}

.add-goal-content .pet-display {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw; 
    height: 60vh; 
    max-height: none; 
    margin: 0;
    padding: 0; 
}

.add-goal-content .pet-background {
    position: relative;
    width: 100%; 
    height: 100%;
    max-width: none;
    max-height: none; 
}

.add-goal-content .background-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 0; 
}

.add-goal-content .pet-character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.add-goal-content .pet-sprite {
    width: clamp(250px, 25vw, 140px); /* Keep original sizing */
    height: clamp(250px, 25vw, 140px);
    object-fit: contain;
    animation: gentle-breathing 3s ease-in-out infinite;
}

.add-goal-content .pet-character {
    position: absolute;
    top: 70%; /* Move the container down */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Add Goal Section */
.add-goal-section {
    background-color: #EC6E4B;
    border-radius: 20px;
    flex: 0 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 20px 60px 20px;
}

.add-goal-title {
    font-size: clamp(18px, 4.5vw, 22px);
    color: white;
    text-align: center;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.goal-input-container {
    width: 100%;
}

.goal-input {
    width: 100%;
    padding: 18px 20px;
    font-size: clamp(16px, 4vw, 18px);
    border: none;
    border-radius: 15px;
    background-color: #fff;
    color: #333;
    outline: none;
    font-family: 'Pavanam', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.goal-input:focus {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.goal-input::placeholder {
    color: #999;
    font-weight: 400;
}

.add-button {
    background: #FAB051;
    color: black;
    border: none;
    border-radius: 15px;
    padding: 18px 24px;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 176, 81, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-end;
    min-width: 0px;
    font-family: paytone one, sans-serif;
}

.add-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.add-button:not(:disabled):active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(250, 176, 81, 0.6);
}

.add-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 176, 81, 0.5);
}

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #EC6E4B;
    border-top: 1px solid #e0e0e0;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    
}

.navbar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
    cursor: pointer;
    
}

.nav-item.active {
    color: #fff;
}

.nav-item.active .nav-icon {
    fill: #FAB051;
    transform: scale(1.1);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Learning Screen Styles */
.learning-screen {
    background: #F7835A;
    position: static;
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    padding: 20px 0 calc(100px + env(safe-area-inset-bottom));
}

.learning-content {
    padding: 0 20px;
    max-width: 400px;
    margin: 0 auto;
}

.learning-header {
    text-align: center;
    margin-bottom: 30px;
}

.learning-title {
    font-size: clamp(24px, 6vw, 32px);
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.learning-subtitle {
    font-size: clamp(14px, 3.5vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Pavanam', sans-serif;
    line-height: 1.4;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px; 

}

.article-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.article-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.article-tag {
    display: inline-block;
    background: #FAB051;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-family: 'Pavanam', sans-serif;
}

.article-title {
    font-size: clamp(16px, 4vw, 18px);
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.article-description {
    font-size: clamp(14px, 3.5vw, 15px);
    color: #666;
    line-height: 1.4;
    font-family: 'Pavanam', sans-serif;
    margin-bottom: 12px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    font-family: 'Pavanam', sans-serif;
}

.read-time {
    font-weight: 500;
}

.hidden {
    display: none !important;
}


.article-card.article-read {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4CAF50;
}

.article-card.article-read .article-title {
    color: #666;
}

.article-card.article-read .article-description {
    color: #888;
}

.read-checkmark {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    animation: checkmark-appear 0.3s ease-in-out;
    flex-shrink: 0;
}


@keyframes slideDown {
    0% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}

/* Checkmark animation */
@keyframes checkmark-appear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover effects for read articles */
.article-card.article-read:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Optional: Different styling for completely read articles */
.article-card.article-read::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 15px 15px 0 0;
}

/* Stats section styling */
.reading-stats {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-family: 'Pavanam', sans-serif;
}

/* Mobile optimizations */
@media screen and (max-width: 414px) {
    .navbar-container {
        padding: 0 15px;
    }
    
    .nav-item {
        min-width: 50px;
        padding: 6px 8px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .nav-label {
        font-size: 11px;
    }
    
    .learning-content {
        padding: 0 15px;
    }
}

/* Animations */
@keyframes gentle-breathing {
    0%, 100% {
        transform: scale(1) translateY(0px);
    }
    50% {
        transform: scale(1.02) translateY(-3px);
    }
}

@keyframes happy-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes sad-droop {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(2px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

/* Mobile Optimizations */
@media screen and (max-width: 414px) {
    .name-pet-content {
        padding: 30px 15px;
    }
    
    .homepage-content {
        padding: 0;
        gap: 0;
    }

    .add-goal-content {
        padding: 0;
        gap: 0;
    }
    
    .goals-section {
        margin: 0 15px 15px 15px;
        padding: 15px;
    }

    .action-section {
        margin: 0 15px 60px 15px;
    }
    
    .progress-bar {
        height: 45px;
    }
    
    .add-goal-section {
        margin: 0 15px 60px 15px;
        padding: 15px;
        gap: 15px;
    }

    .goal-input {
        padding: 16px 18px;
    }
    
   .add-button {
        padding: 16px 32px;
    }

    .progress-bar {
        height: 45px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .start-button:hover {
        background-color: #E8B86D;
        transform: none;
    }
    
    .pet-image:hover {
        transform: none;
    }
}

@media screen and (max-width: 414px) {
    .goal-actions {
        gap: 8px;
    }
    
    .delete-goal-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .goal-text {
        margin-right: 10px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .start-button:hover {
        background-color: #D4A853;
        transform: translateY(-2px);
    }
    
    .pet-image:hover {
        transform: scale(1.05);
    }
}

@media screen and (max-width: 414px) {
    .welcome-content {
        padding: 30px 15px;
    }
    
    .pet-image {
        margin-bottom: 15px;
    }
    
    .tagline {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 360px) {
    .welcome-content {
        padding: 20px 10px;
    }
}