/* Home Screen Styles */
.home-screen {
    height: calc(100% - 30px);
    padding: 15px 8px 0 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 0 15px;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.app:hover {
    transform: scale(1.1);
}

.app:active {
    transform: scale(0.95);
}

.app-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-size: 150% 150%;
    animation: gradientShift 5s ease infinite;
    z-index: 0;
}

.app-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* App-specific gradients */
.app[data-app="education"] .app-icon {
    background: linear-gradient(135deg, #9E1B34, #B31B1B);
}

.app[data-app="projects"] .app-icon {
    background-color: rgba(128, 128, 128, 0.25);
    background-image: none;
    animation: none;
}

.app[data-app="experience"] .app-icon {
    background: linear-gradient(135deg, #064E3B, #065F46);
}

.app[data-app="skills"] .app-icon {
    background: linear-gradient(135deg, #2E1065, #4C1D95);
    background-size: 100% 100%;
    position: relative;
    z-index: 0;
}

.app[data-app="skills"] .app-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    background: inherit;
    border-radius: 12px;
    z-index: -1;
}

/* Dock App Icons with enhanced gradients */
.dock .app[data-app="phone"] .app-icon {
    background: linear-gradient(135deg, #4CD964, #2AC845, #34D399);
}

.dock .app[data-app="safari"] .app-icon {
    background: linear-gradient(135deg, #60A5FA, #3B82F6, #2563EB);
}

.dock .app[data-app="messages"] .app-icon {
    background: linear-gradient(135deg, #15803D, #16A34A);
}

.dock .app[data-app="mail"] .app-icon {
    background: linear-gradient(135deg, #F87171, #DC2626, #EF4444);
}

.app:hover .app-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.app:active .app-icon {
    transform: scale(0.95) translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-name {
    font-size: 10px;
    color: white;
    margin-top: 3px;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dock Styles */
.dock {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-evenly;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 10px;
    width: 280px;
    max-width: 340px;
}

.dock .app-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Home Button */
.home-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.app-screen.active ~ .home-button {
    display: block;
    width: 100px;
} 